new 2.x branch

This commit is contained in:
mertsincan 2022-08-22 14:47:07 +01:00
parent ced915ab8e
commit db154b59ac
1316 changed files with 36881 additions and 132741 deletions

View file

@ -1,45 +1,73 @@
const TriStateCheckboxProps = [
{
name: "modelValue",
name: "value",
type: "boolean",
default: "null",
description: "Value of the component."
},
{
name: "disabled",
type: "boolean",
default: "false",
description: "When present, it specifies that the component should be disabled."
},
{
name: "tabindex",
type: "string",
default: "null",
description: "Index of the element in tabbing order."
},
{
name: "inputId",
type: "string",
default: "null",
description: "Identifier of the underlying input element."
},
{
name: "inputProps",
type: "object",
default: "null",
description: "Uses to pass all properties of the HTMLInputElement to the focusable input element inside the component."
},
{
name: "aria-labelledby",
name: "ariaLabelledBy",
type: "string",
default: "null",
description: "Establishes relationships between the component and label(s) where its value should be one or more element IDs."
}
];
const TriStateCheckboxEvents = [
{
name: "change",
description: "Callback to invoke on value change.",
arguments: [
{
name: "event",
type: "object",
description: "Browser event"
}
]
},
{
name: "aria-label",
type: "string",
default: "null",
description: "Used to define a string that labels the element."
name: "input",
description: "Callback to invoke click.",
arguments: [
{
name: "event",
type: "object",
description: "Value of checkbox"
}
]
},
{
name: "click",
description: "Callback to invoke click.",
arguments: [
{
name: "event",
type: "object",
description: "Browser event"
}
]
},
{
name: "focus",
description: "Callback to invoke on focus.",
arguments: [
{
name: "event",
type: "object",
description: "Browser event"
}
]
},
{
name: "blur",
description: "Callback to invoke on blur.",
arguments: [
{
name: "event",
type: "object",
description: "Browser event"
}
]
}
];
@ -47,6 +75,7 @@ module.exports = {
tristatecheckbox: {
name: "TriStateCheckbox",
description: 'TriStateCheckbox is used to select either "true", "false" or "null" as the value.',
props: TriStateCheckboxProps
props: TriStateCheckboxProps,
events: TriStateCheckboxEvents
}
};