Skip to content

Manipulation

Nikita Yudin edited this page Dec 28, 2023 · 1 revision

Description

Manipulation module adds useful methods to manipulate items.

Properties

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.

Methods

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.