Class: Tuile::Component::ListDropdown::Menu
- Inherits:
-
Tuile::Component::List
- Object
- Component
- Tuile::Component::List
- Tuile::Component::ListDropdown::Menu
- Defined in:
- lib/tuile/component/list_dropdown.rb,
sig/tuile.rbs
Overview
The dropdown's Tuile::Component::List. Non-focusable on purpose: the driver forwards keys while focus stays on it, and a mouse click selects an item without stealing focus — so a driving text input never loses its caret mid-interaction.
Constant Summary collapse
- DEFAULT_RENDERER =
Instance Attribute Summary
Attributes inherited from Tuile::Component::List
#auto_scroll, #cursor, #items, #on_cursor_changed, #on_item_chosen, #renderer, #scroll_top_row, #scrollbar_visibility, #show_cursor_when_inactive
Instance Method Summary collapse
Methods inherited from Tuile::Component::List
#at_bottom?, #blank_row, #build_lines, #content_width, #cursor_on_item?, #cursor_state, #drop_row_cache, #fire_item_chosen, #following?, #handle_key, #handle_mouse, #initialize, #lines=, #move_scroll_top_row_by, #move_viewport_to_cursor, #notify_cursor_changed, #on_width_changed, #order_for_search, #pad_to_row, #padded_row, #paintable_row, #parse_input_lines, #refresh_rows, #render, #repaint, #rstrip_styled, #scroll_top_row_max, #scrollbar_visible?, #search_and_go, #select_next, #select_prev, #split_to_lines, #update_scroll_top_row_if_auto_scroll, #viewport_rows
Constructor Details
This class inherits a constructor from Tuile::Component::List
Instance Method Details
#focusable? ⇒ Boolean
42 |
# File 'lib/tuile/component/list_dropdown.rb', line 42 def focusable? = false |
#tab_stop? ⇒ Boolean
43 |
# File 'lib/tuile/component/list_dropdown.rb', line 43 def tab_stop? = false |