{ "schemaVersion": "1.0.0", "readme": "../README.md", "modules": [ { "kind": "javascript-module", "path": "lib/jb-option.ts", "declarations": [ { "kind": "class", "description": "Selectable option web component used inside jb-select. The value can be a string from the attribute or any JavaScript value assigned through the value property.", "name": "JBOptionWebComponent", "tagName": "jb-option", "customElement": true, "superclass": { "name": "HTMLElement" }, "attributes": [ { "name": "value", "description": "Option value from markup. Use the value property for non-string values.", "type": { "text": "string" } } ], "members": [ { "kind": "field", "name": "value", "description": "Option value.", "type": { "text": "TValue | null" } }, { "kind": "field", "name": "selected", "description": "Whether this option is selected.", "type": { "text": "boolean" } }, { "kind": "field", "name": "hidden", "description": "Whether this option is hidden by filtering.", "type": { "text": "boolean" } }, { "kind": "field", "name": "isActive", "description": "Whether this option is the active keyboard/hover target.", "type": { "text": "boolean" } }, { "kind": "field", "name": "optionContentText", "description": "Text content used for default filtering.", "type": { "text": "string" }, "readonly": true } ], "methods": [ { "name": "toggleOption", "description": "Selects or deselects the option using the same behavior as a click." } ], "events": [ { "name": "select", "description": "Bubbling event fired when the option is selected." }, { "name": "deselect", "description": "Bubbling event fired when the option is deselected in multiple mode." }, { "name": "jb-option-connected", "description": "Internal event fired when the option connects so jb-select can register it." }, { "name": "jb-option-disconnected", "description": "Internal event fired when the option disconnects so jb-select can unregister it." } ], "slots": [ { "name": "", "description": "Visible option content." } ], "cssProperties": [ { "name": "--jb-option-padding", "description": "Option padding." }, { "name": "--jb-option-background-color-active", "description": "Option background color on hover or keyboard active state." } ] } ], "exports": [ { "kind": "js", "name": "JBOptionWebComponent", "declaration": { "name": "JBOptionWebComponent", "module": "lib/jb-option.ts" } }, { "kind": "custom-element-definition", "name": "jb-option", "declaration": { "name": "JBOptionWebComponent", "module": "lib/jb-option.ts" } } ] } ] }