Skip to content

Dropdown : List

This is the dropdown class. It is a visual element that can show a list of selectable items in a dropdown menu.

Properties

PropertyTypeDefaultDescription
isOpenbooleanfalseWhether the dropdown menu is currently open
dropdownHeightnumber5Maximum height of the dropdown menu when open
selectedTextstring""The text to show when no item is selected
dropSymbolstring"\31"The symbol to show for dropdown indication

Protected Functions

MethodReturnsDescription
Dropdown:initDropdownInitializes the Dropdown instance
Dropdown:mouse_clickbooleanHandles mouse click events
Dropdown:render-Renders the Dropdown

Released under the MIT License.