Opal::UI::Button
Inherits Opal::UI::Control < Opal::UI::InputHookable < Opal::UI::Element < Opal::UI::Themable < Reference < Object
Focusable, interactive Button component supporting styles (:primary, :secondary, :outline, :danger, :success, :ghost), toggle modes, icons, keyboard shortcuts, and mouse clicks.
Constructors
Instance methods
active?
Sourceactive_bg
Sourceactive_bg=(active_bg : Color | Nil)
Sourceactive_fg
Sourceactive_fg=(active_fg : Color | Nil)
Sourcebg
Sourcebg=(bg : Color | Nil)
Sourceborder_fg
Sourceborder_fg=(border_fg : Color | Nil)
Sourceborder_style
Sourceborder_style=(border_style : Border | Nil)
Sourcedisabled?
Sourceeffective_bg
Sourceeffective_fg
SourceDefault key event handler. Override in subclasses if not using @default_input_proc.
Default mouse event handler. Override in subclasses if not using @default_input_proc.
hover_bg
Sourcehover_bg=(hover_bg : Color | Nil)
Sourcehover_fg
Sourcehover_fg=(hover_fg : Color | Nil)
Sourceicon
Sourcelabel
Sourceon_click
Sourceon_click
Sourceshortcut_char
Sourcetoggle?
Sourcevariant
Source