2019-10-27 13:01:43 +01:00
|
|
|
{
|
2020-04-15 18:54:47 -07:00
|
|
|
"version": "experimental",
|
2019-10-27 13:01:43 +01:00
|
|
|
"tags": [
|
|
|
|
{
|
|
|
|
"name": "demo-wc-card",
|
2020-04-15 18:54:47 -07:00
|
|
|
"path": "./demo-wc-card.js",
|
2019-10-27 18:28:28 +01:00
|
|
|
"description": "This is a container looking like a card with a back and front side you can switch",
|
2019-10-28 15:16:30 -07:00
|
|
|
"attributes": [
|
|
|
|
{
|
|
|
|
"name": "back-side",
|
2019-10-28 21:15:26 -07:00
|
|
|
"description": "Indicates that the back of the card is shown",
|
2019-12-09 16:08:40 -08:00
|
|
|
"type": "boolean",
|
2020-04-15 18:54:47 -07:00
|
|
|
"default": "false"
|
2019-10-28 15:16:30 -07:00
|
|
|
},
|
2019-10-27 13:01:43 +01:00
|
|
|
{
|
|
|
|
"name": "header",
|
2019-10-28 21:15:26 -07:00
|
|
|
"description": "Header message",
|
2019-12-09 16:08:40 -08:00
|
|
|
"type": "string",
|
2020-04-15 18:54:47 -07:00
|
|
|
"default": "\"Your Message\""
|
2019-10-27 13:01:43 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "rows",
|
2019-10-28 21:15:26 -07:00
|
|
|
"description": "Data rows",
|
2020-04-15 18:54:47 -07:00
|
|
|
"type": "object",
|
|
|
|
"default": "[]"
|
2019-10-28 15:16:30 -07:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"properties": [
|
2019-10-27 13:01:43 +01:00
|
|
|
{
|
|
|
|
"name": "backSide",
|
2020-04-15 18:54:47 -07:00
|
|
|
"attribute": "back-side",
|
2019-10-28 21:15:26 -07:00
|
|
|
"description": "Indicates that the back of the card is shown",
|
2020-04-15 18:54:47 -07:00
|
|
|
"type": "boolean",
|
|
|
|
"default": "false"
|
2019-10-28 15:16:30 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "header",
|
2020-04-15 18:54:47 -07:00
|
|
|
"attribute": "header",
|
2019-10-28 21:15:26 -07:00
|
|
|
"description": "Header message",
|
2020-04-15 18:54:47 -07:00
|
|
|
"type": "string",
|
|
|
|
"default": "\"Your Message\""
|
2019-10-28 15:16:30 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "rows",
|
2020-04-15 18:54:47 -07:00
|
|
|
"attribute": "rows",
|
2019-10-28 21:15:26 -07:00
|
|
|
"description": "Data rows",
|
2020-04-15 18:54:47 -07:00
|
|
|
"type": "object",
|
|
|
|
"default": "[]"
|
2019-10-27 13:01:43 +01:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"events": [
|
|
|
|
{
|
|
|
|
"name": "side-changed",
|
|
|
|
"description": "Fires whenever it switches between front/back"
|
|
|
|
}
|
|
|
|
],
|
2020-09-08 12:04:15 +02:00
|
|
|
"methods": [
|
|
|
|
{
|
|
|
|
"name": "testMethod",
|
|
|
|
"description": "Some web component frameworks like Stencil generate extra docs for methods. These are also displayed in the ArgsTable."
|
|
|
|
}
|
|
|
|
],
|
2019-10-27 13:01:43 +01:00
|
|
|
"slots": [
|
|
|
|
{
|
|
|
|
"name": "",
|
2019-10-28 15:16:30 -07:00
|
|
|
"description": "This is an unnamed slot (the default slot)"
|
2019-10-27 13:01:43 +01:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"cssProperties": [
|
|
|
|
{
|
2020-04-15 18:54:47 -07:00
|
|
|
"name": "--demo-wc-card-header-font-size",
|
|
|
|
"description": "Header font size"
|
2019-10-27 13:01:43 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "--demo-wc-card-front-color",
|
2019-10-28 15:16:30 -07:00
|
|
|
"description": "Font color for front"
|
2019-10-27 13:01:43 +01:00
|
|
|
},
|
|
|
|
{
|
2020-04-15 18:54:47 -07:00
|
|
|
"name": "--demo-wc-card-back-color",
|
|
|
|
"description": "Font color for back"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"cssParts": [
|
|
|
|
{
|
|
|
|
"name": "front",
|
|
|
|
"description": "Front of the card"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "back",
|
|
|
|
"description": "Back of the card"
|
2019-10-27 13:01:43 +01:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
2020-04-15 18:54:47 -07:00
|
|
|
}
|