class

Opal::UI::Footer

Inherits Opal::UI::Element < Opal::UI::Themable < Reference < Object

Standardized application bottom footer inspired by Python Textual's Footer. Displays responsive keyboard shortcut badges with key caps and descriptions.

Constructors

new(bindings : Array(NamedTuple(key: String, desc: String)) | Array(BindingEntry) = [] of BindingEntry)
Source

Instance methods

add(key : String, description : String, &block : -> Nil) : self
Source
add(key : String, description : String) : self
Source
bg=(bg : Color | Nil)
Source
bindings
Source
bindings=(bindings : Array(BindingEntry))
Source
desc_fg
Source
desc_fg=(desc_fg : Color | Nil)
Source
handle_mouse(event : Terminal::MouseEvent) : Bool
Source
key_bg
Source
key_bg=(key_bg : Color | Nil)
Source
key_fg
Source
key_fg=(key_fg : Color | Nil)
Source
preferred_size(available_w : Int32, available_h : Int32) : Tuple(Int32, Int32)
Source
render(buffer : Buffer, x : Int32, y : Int32, width : Int32, height : Int32) : Nil
Source

Nested types