class Opal::UI::FilterList

Overview

Interactive fuzzy filterable list with search query and optional preview pane.

Defined in:

opal/ui/components/filter_list.cr

Constructors

Instance Method Summary

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

def self.new(items : Array(String), title : String | Nil = nil, preview_fn : Proc(String, String) | Nil = nil) #

[View source]

Instance Method Detail

def append_char(ch : Char) : Nil #

[View source]
def backspace : Nil #

[View source]
def cursor : Int32 #

[View source]
def cursor=(cursor : Int32) #

[View source]
def cursor_down : Nil #

[View source]
def cursor_up : Nil #

[View source]
def items : Array(String) #

[View source]
def matches : Array(Input::FuzzyMatch(String)) #

[View source]
def preferred_size(available_w : Int32, available_h : Int32) : Tuple(Int32, Int32) #

[View source]
def preview_fn : Proc(String, String) | Nil #

[View source]
def preview_fn=(preview_fn : Proc(String, String) | Nil) #

[View source]
def query : String #

[View source]
def query=(query : String) #

[View source]
def render(buffer : Buffer, x : Int32, y : Int32, width : Int32, height : Int32) : Nil #

[View source]
def selected_item : String | Nil #

[View source]
def title : String | Nil #

[View source]