πŸš€ 8.9 Released! β†’ ⚑️ New Node-API Engine Preview, πŸ“² ns widget ios, πŸ’… Tailwind v4 and more...
Read Announcement

<ListPicker> is a UI component that lets the user select a value from a pre-configured list.

xml
<ListPickeritems="{{ items }}" />
ts
constitems= [`First`, `Second`, `Third`]
html
<ListPicker[items]="items" />
ts
items = [`First`, `Second`, `Third`];
tsx
<listPickeritems={items} />
tsx
<listpickeritems={choices}></listpicker>
svelte
<listPicker{items}></listPicker>
vue
<ListPicker :items="items" />

Props ​

items ​

ts
items: Array<string | number>

Gets or sets the items of the ListPicker.

selectedIndex ​

ts
selectedIndex: number

Gets or sets the index of the currently selected item.

...Inherited ​

For additional inherited properties, refer to the API Reference.

Events ​

selectedIndexChange ​

ts
on('selectedIndexChange', (args:PropertyChangeData) => {
constpicker= args.object asListPicker
 console.log('selectedIndex changed to', args.value)
// or picker.selectedIndex
})

Emitted when the currently selected item (index) changes.

Native component ​

Previous
Label

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /