class
Opal::UI::CommandPalette
- Opal::UI::CommandPalette
- Opal::UI::Element
- Reference
- Object
Overview
Spotlight / Quick Launcher overlay modal for searchable actions and hotkeys.
Defined in:
opal/ui/components/command_palette.crConstructors
Instance Method Summary
- #actions : Array(CommandAction)
- #add(id : String, title : String, category : String = "General", shortcut : String | Nil = nil) : CommandAction
- #add(action : CommandAction) : Nil
- #add(id : String, title : String, category : String = "General", shortcut : String | Nil = nil, &block : -> Nil) : CommandAction
- #append_char(ch : Char) : Nil
- #backspace : Nil
- #cursor : Int32
- #cursor=(cursor : Int32)
- #cursor_down : Nil
- #cursor_up : Nil
- #execute_selected : CommandAction | Nil
- #matches : Array(Input::FuzzyMatch(CommandAction))
- #preferred_size(available_w : Int32, available_h : Int32) : Tuple(Int32, Int32)
- #query : String
- #query=(query : String)
- #render(buffer : Buffer, x : Int32, y : Int32, width : Int32, height : Int32) : Nil
- #selected_action : CommandAction | Nil
-
#selected_item : CommandAction | Nil
Alias
- #visible=(visible : Bool)
- #visible? : Bool
Instance methods inherited from class Opal::UI::Element
preferred_size(available_w : Int32, available_h : Int32) : Tuple(Int32, Int32)
preferred_size,
render(buffer : Buffer, x : Int32, y : Int32, width : Int32, height : Int32) : Nil
render
Constructor Detail
Instance Method Detail
def add(id : String, title : String, category : String = "General", shortcut : String | Nil = nil) : CommandAction
#
def add(id : String, title : String, category : String = "General", shortcut : String | Nil = nil, &block : -> Nil) : CommandAction
#