UNPKG

@vonage/vivid-react

Version:

Vivid wrapped for easy React usage & IDE autocomplete support & typescript typings

147 lines (142 loc) 3.19 kB
/* * DO NOT EDIT THIS FILE. IT IS GENERATED */ /* Code in this file were generated using following JSON: { "kind": "class", "description": "", "name": "Listbox", "members": [ { "kind": "field", "name": "length", "type": { "text": "number" }, "description": "The number of options.", "privacy": "public", "readonly": true }, { "kind": "field", "name": "options", "type": { "text": "ListboxOption[]" }, "description": "The list of options.", "privacy": "public" }, { "kind": "field", "name": "disabled", "type": { "text": "boolean" }, "description": "The disabled state of the listbox.", "privacy": "public" }, { "kind": "field", "name": "selectedIndex", "type": { "text": "number" }, "default": "-1", "description": "The index of the selected option.", "privacy": "public" }, { "kind": "field", "name": "selectedOptions", "type": { "text": "ListboxOption[]" }, "default": "[]", "description": "A collection of the selected options.", "privacy": "public" }, { "kind": "field", "name": "slottedOptionFilter", "static": true, "description": "A static filter to include only selectable options.", "parameters": [ { "description": "element to filter", "name": "n" } ], "privacy": "public" }, { "kind": "method", "name": "selectFirstOption", "return": { "type": { "text": "void" } }, "description": "Moves focus to the first selectable option.", "privacy": "public" }, { "kind": "method", "name": "setSelectedOptions", "privacy": "public", "description": "Sets an option as selected and gives it focus." }, { "kind": "field", "name": "VIVID_VERSION", "static": true, "default": "__PACKAGE_VERSION__", "description": "The current version of the Vivid library, which is useful for debugging.\nIt can be accessed from any Vivid element via `<el>.constructor.VIVID_VERSION`.", "type": { "text": "string" }, "inheritedFrom": { "name": "VividElement", "module": "src/shared/foundation/vivid-element/vivid-element.ts" } }, { "kind": "field", "name": "componentName", "type": { "text": "string" }, "static": true, "description": "Core component name, without prefix", "inheritedFrom": { "name": "VividElement", "module": "src/shared/foundation/vivid-element/vivid-element.ts" } } ], "attributes": [ { "name": "disabled", "type": { "text": "boolean" }, "description": "The disabled state of the listbox.", "fieldName": "disabled" } ], "superclass": { "name": "VividElement", "module": "/src/shared/foundation/vivid-element/vivid-element" } } */ import wrapper from '@vonage/vivid-react-wrapper' import { registerListbox } from '@vonage/vivid' registerListbox('vvd3') const VwcListbox = wrapper(`vvd3-listbox`, { events: [], attributes: [], properties: ['options', 'disabled', 'selectedIndex', 'selectedOptions', 'slottedOptionFilter', 'VIVID_VERSION', 'componentName'] }) VwcListbox.displayName = 'VwcListbox' export default VwcListbox