module
Opal::UI::Themable
Overview
Module mixed into Elements and Controls allowing per-instance theme binding, dynamic theme fallback, and fluent styling blocks.
Direct including types
Defined in:
opal/ui/themable.crInstance Method Summary
-
#current_theme : Theme
Returns the effective theme: either this component's local theme or global Theme.current
-
#style(&block : self -> Nil) : self
Yields self to a block for fluent styling/theme value manipulation
-
#theme : Theme | Nil
Optional local theme override for this component instance
-
#theme=(theme : Theme | Nil)
Optional local theme override for this component instance
-
#with_theme(new_theme : Theme | Symbol | String) : self
Assigns a local theme to this component
Instance Method Detail
Returns the effective theme: either this component's local theme or global Theme.current
Yields self to a block for fluent styling/theme value manipulation
Optional local theme override for this component instance
Assigns a local theme to this component