@vonage/vivid-react
Version:
Vivid wrapped for easy React usage & IDE autocomplete support & typescript typings
206 lines (201 loc) • 4.23 kB
JavaScript
/*
* DO NOT EDIT THIS FILE. IT IS GENERATED
*/
/*
Code in this file were generated using following JSON:
{
"kind": "class",
"description": "",
"name": "TreeView",
"slots": [
{
"description": "Default slot.",
"name": ""
}
],
"members": [
{
"kind": "field",
"name": "renderCollapsedNodes",
"type": {
"text": "boolean"
},
"description": "/**\n When true, the control will be appear expanded by user interaction.",
"privacy": "public"
},
{
"kind": "field",
"name": "currentSelected",
"type": {
"text": "HTMLElement | TreeItem | null"
},
"description": "The currently selected tree item",
"privacy": "public"
},
{
"kind": "method",
"name": "slottedTreeItemsChanged",
"return": {
"type": {
"text": "void"
}
}
},
{
"kind": "field",
"name": "nested",
"type": {
"text": "boolean"
},
"privacy": "private"
},
{
"kind": "method",
"name": "focusNextNode",
"privacy": "private",
"return": {
"type": {
"text": "void"
}
},
"parameters": [
{
"name": "delta",
"type": {
"text": "number"
}
},
{
"name": "item",
"type": {
"text": "TreeItem"
}
}
],
"description": "Move focus to a tree item based on its offset from the provided item"
},
{
"kind": "field",
"name": "setItems",
"privacy": "private",
"description": "Updates the tree view when slottedTreeItems changes"
},
{
"kind": "method",
"name": "getValidFocusableItem",
"privacy": "private",
"return": {
"type": {
"text": "null | HTMLElement | TreeItem"
}
},
"description": "checks if there are any nested tree items"
},
{
"kind": "method",
"name": "checkForNestedItems",
"privacy": "private",
"return": {
"type": {
"text": "boolean"
}
},
"description": "checks if there are any nested tree items"
},
{
"kind": "field",
"name": "isFocusableElement",
"privacy": "private",
"description": "check if the item is focusable"
},
{
"kind": "field",
"name": "isSelectedElement",
"privacy": "private"
},
{
"kind": "method",
"name": "getVisibleNodes",
"privacy": "private",
"return": {
"type": {
"text": "HTMLElement[]"
}
}
},
{
"kind": "field",
"name": "_vividAriaBehaviour",
"default": "'host'",
"type": {
"text": "'host'"
},
"inheritedFrom": {
"name": "HostSemantics",
"module": "src/shared/aria/host-semantics.ts"
}
},
{
"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": "render-collapsed-nodes",
"type": {
"text": "boolean"
},
"description": "/**\n When true, the control will be appear expanded by user interaction.",
"fieldName": "renderCollapsedNodes"
}
],
"mixins": [
{
"name": "HostSemantics",
"module": "/src/shared/aria/host-semantics"
}
],
"superclass": {
"name": "VividElement",
"module": "/src/shared/foundation/vivid-element/vivid-element.js"
},
"vividComponent": {
"public": true,
"name": "tree-view"
}
}
*/
import wrapper from '@vonage/vivid-react-wrapper'
import { registerTreeView } from '@vonage/vivid'
registerTreeView('vvd3')
const VwcTreeView = wrapper(`vvd3-tree-view`, {
events: [],
attributes: [],
properties: ['renderCollapsedNodes', 'currentSelected', '_vividAriaBehaviour', 'VIVID_VERSION', 'componentName']
})
VwcTreeView.displayName = 'VwcTreeView'
export default VwcTreeView