List script interface
The IListInstance
interface derives from IDOMInstance to add APIs specific to the List plugin.
List events
See instance event for standard instance event object properties.
- "click"
- Fired when the list is clicked.
- "dblclick"
- Fired when the list is double-clicked.
- "selectionchange"
- Fired when there is any change to the selected item or items.
List APIs
- addItem(text)
- Append a new item with the given text to the end of the list.
- insertItem(index, text)
- Insert a new item at a zero-based index in the list with the given text.
- setItemText(index, text)
- Set the item text at a zero-based index in the list.
- getItemText(index)
- Return a string of the current item text at a zero-based index in the list.
- removeItem(index)
- Delete an item at a zero-based index from the list.
- clear()
- Remove all items from the list, leaving the list empty.
- itemCount
- A read-only number representing how many items are in the list.
- selectedIndex
- Set or get a number indicating the zero-based index of the currently-selected list item.
- selectedCount
- A read-only number with the number of selected items. This is usually only useful with multi-select lists.
- getSelectedIndexAt(index)
- getSelectedTextAt(index)
- Return the item index or the item text of a selected item by its index up to
selectedCount
. This is usually only useful with multi-select lists.
- tooltip
- A tooltip that appears if the user hovers the mouse over the list and waits. An empty string indicates no tooltip.
Construct Animate Manual
Construct.net
2022-11-03
2022-11-03
You are here:
Search this manual:
This manual entry was last updated on 3 Nov, 2022 at 12:15