95 lines
2.4 KiB
JSON
Raw Normal View History

2019-10-27 13:01:43 +01:00
{
"version": "experimental",
2019-10-27 13:01:43 +01:00
"tags": [
{
"name": "demo-wc-card",
"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",
"attributes": [
{
"name": "back-side",
2019-10-28 21:15:26 -07:00
"description": "Indicates that the back of the card is shown",
"type": "boolean",
"default": "false"
},
2019-10-27 13:01:43 +01:00
{
"name": "header",
2019-10-28 21:15:26 -07:00
"description": "Header message",
"type": "string",
"default": "\"Your Message\""
2019-10-27 13:01:43 +01:00
},
{
"name": "rows",
2019-10-28 21:15:26 -07:00
"description": "Data rows",
"type": "object",
"default": "[]"
}
],
"properties": [
2019-10-27 13:01:43 +01:00
{
"name": "backSide",
"attribute": "back-side",
2019-10-28 21:15:26 -07:00
"description": "Indicates that the back of the card is shown",
"type": "boolean",
"default": "false"
},
{
"name": "header",
"attribute": "header",
2019-10-28 21:15:26 -07:00
"description": "Header message",
"type": "string",
"default": "\"Your Message\""
},
{
"name": "rows",
"attribute": "rows",
2019-10-28 21:15:26 -07:00
"description": "Data rows",
"type": "object",
"default": "[]"
2019-10-27 13:01:43 +01:00
}
],
"events": [
{
"name": "side-changed",
"description": "Fires whenever it switches between front/back"
}
],
"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": "",
"description": "This is an unnamed slot (the default slot)"
2019-10-27 13:01:43 +01:00
}
],
"cssProperties": [
{
"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",
"description": "Font color for front"
2019-10-27 13:01:43 +01: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
}
]
}
]
}