Opal::UI::Element
Inherits Opal::UI::Themable < Reference < Object
Base class for all visual components in the declarative UI hierarchy.
Instance methods
Returns the preferred size for one-shot print mode rendering, where height should expand to fit all content rather than clamping to viewport rows.
Prints the element directly to an IO stream in one-shot print mode.
Queries all descendants matching a CSS-like selector string
Queries all descendants matching a specific Crystal type class
Queries the first descendant matching selector, or raises KeyError
Queries the first descendant matching type class, or raises KeyError
Queries the first descendant matching selector, or nil
Queries the first descendant matching type class, or nil
Print-mode rendering hook that components can override if their print layout differs from interactive layout
Renders the element into a string buffer in one-shot print mode. If color is nil, auto-detects from TTY and NO_COLOR environment variable.