update api-generator

This commit is contained in:
Tuğçe Küçükoğlu 2021-06-14 17:03:46 +03:00
parent 2a2c97703c
commit cb659b73ef
14 changed files with 233 additions and 31 deletions

View file

@ -16,6 +16,43 @@ const CheckboxProps = [
type: "boolean",
default: "false",
description: "Allows to select a boolean value instead of multiple values."
},
{
name: "class",
type: "string",
default: "null",
description: "Style class of the component."
},
{
name: "style",
type: "any",
default: "null",
description: "Inline of the component."
}
];
const CheckboxEvents = [
{
"name": "click",
"description": "Callback to invoke on value click.",
arguments: [
{
name: "event",
type: "object",
description: "Browser event"
}
]
},
{
"name": "change",
"description": "Callback to invoke on value change.",
arguments: [
{
name: "event",
type: "object",
description: "Browser event"
}
]
}
];
@ -23,6 +60,7 @@ module.exports = {
checkbox: {
name: "Checkbox",
description: "Checkbox is an extension to standard checkbox element with theming.",
props: CheckboxProps
props: CheckboxProps,
events: CheckboxEvents
}
};