Class: Tuile::Component::ListDropdown::Menu

Inherits:
Tuile::Component::List show all
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 (and the caret) stay in its input, and a mouse click selects an item without stealing focus — so the input never loses the cursor mid-interaction.

Instance Attribute Summary

Attributes inherited from Tuile::Component::List

#auto_scroll, #cursor, #on_cursor_changed, #on_item_chosen, #scrollbar_visibility, #show_cursor_when_inactive, #top_line

Instance Method Summary collapse

Methods inherited from Tuile::Component::List

#add_line, #add_lines, #at_bottom?, #content_width, #cursor_on_item?, #cursor_state, #fire_item_chosen, #following?, #handle_key, #handle_mouse, #initialize, #lines, #lines=, #move_top_line_by, #move_viewport_to_cursor, #notify_cursor_changed, #on_width_changed, #order_for_search, #pad_to_row, #paintable_line, #parse_input_lines, #rebuild_padded_lines, #repaint, #rstrip_styled, #scrollbar_visible?, #search_and_go, #select_next, #select_prev, #split_to_lines, #top_line_max, #update_top_line_if_auto_scroll, #viewport_lines

Constructor Details

This class inherits a constructor from Tuile::Component::List

Instance Method Details

#focusable?Boolean

Returns:

  • (Boolean)


40
# File 'lib/tuile/component/list_dropdown.rb', line 40

def focusable? = false

#tab_stop?Boolean

Returns:

  • (Boolean)


41
# File 'lib/tuile/component/list_dropdown.rb', line 41

def tab_stop? = false