TfChecklistElement
Extends:
Static Member Summary
| Static Public Members | ||
| public static get |
|
|
Constructor Summary
| Public Constructor | ||
| public |
|
|
Method Summary
| Public Methods | ||
| public |
|
|
| public |
|
|
| public |
Get the values of the selected options, in option order. |
|
| public |
setLabel(label: *) Set the trigger's accessible name, rendered as |
|
| public |
setListboxLabel(label: *) Set the listbox's accessible name, rendered as |
|
| public |
Expand or collapse the popover. |
|
| public |
setOptions(options: Array<*>) Replace the option list. |
|
| public |
setSelectedValues(values: Array<*>) Select the options whose value matches an entry in |
|
| public |
setText(text: *) Set the trigger text, rendered into the |
|
Public Constructors
public constructor() source
Public Methods
public attributeChangedCallback() source
public connectedCallback() source
public getSelectedValues(): Array<String> source
Get the values of the selected options, in option order.
public setLabel(label: *) source
Set the trigger's accessible name, rendered as aria-label.
Params:
| Name | Type | Attribute | Description |
| label | * | Accessible name |
public setListboxLabel(label: *) source
Set the listbox's accessible name, rendered as aria-label.
Params:
| Name | Type | Attribute | Description |
| label | * | Accessible name |
public setOpen(open: Boolean) source
Expand or collapse the popover.
Params:
| Name | Type | Attribute | Description |
| open | Boolean | Whether the popover is expanded |
public setOptions(options: Array<*>) source
Replace the option list. Entries are primitives or objects with
value, text, disabled and selected. The previous selection
is cleared.
Params:
| Name | Type | Attribute | Description |
| options | Array<*> | Option entries |
public setSelectedValues(values: Array<*>) source
Select the options whose value matches an entry in values, and
clear the selection of the rest.
Params:
| Name | Type | Attribute | Description |
| values | Array<*> | Selected values |
public setText(text: *) source
Set the trigger text, rendered into the trigger-text part.
Params:
| Name | Type | Attribute | Description |
| text | * | Trigger text |
