module

Opal::UI::Themable

Module mixed into Elements and Controls allowing per-instance theme binding, dynamic theme fallback, and fluent styling blocks.

Instance methods

current_theme

Returns the effective theme: either this component's local theme or global Theme.current

Source
style

Yields self to a block for fluent styling/theme value manipulation

Source
theme

Optional local theme override for this component instance

Source
theme=(theme : Theme | Nil)

Optional local theme override for this component instance

Source
with_theme(new_theme : Theme | Symbol | String) : self

Assigns a local theme to this component

Source