-
Notifications
You must be signed in to change notification settings - Fork 4
Manipulation
Nikita Yudin edited this page Dec 28, 2023
·
1 revision
Manipulation module adds useful methods to manipulate items.
Let's look on list of all available properties:
Name | Type | Default | Description |
---|---|---|---|
list | Array[String] | [] |
The list of items. |
active_index | int | -1 |
The index of the currently selected item, or -1 if no item is selected. |
After we initialize we have its initialized instance in variable with helpful methods:
Name | Return | Description |
---|---|---|
append_item(items) | void | Add new items to the end. Items could be new item or array with such items. |
prepend_item(items) | void | Add new items to the beginning. Items could be new item or array with such items. |
add_item(idx: int, items) | void | Add new items to the required index. Items could be new item or array with such items. |
remove_all_items() | void | Remove all items. |
remove_item(items_indexes) | void | Remove selected items. items_indexes could be a number with item index to remove or array with indexes. |
Site yudinikita.ru · Email mail@yudinikita.ru · GitHub @yudinikita