Raxol.UI.Renderer (Raxol v2.0.1)
View SourceUI Renderer for Raxol terminal applications.
This module provides rendering capabilities for various UI elements including panels, boxes, text, and tables with theme support.
Summary
Functions
Renders a UI element to a list of cells.
Renders a single element or list of elements to cells using the default theme.
Renders a single element or list of elements to cells. This is the main public API for the renderer.
Functions
Renders a UI element to a list of cells.
Parameters
element- The element to rendertheme- The theme to use for renderingparent_style- Parent style to inherit from (optional)
Returns
- List of cells in the format {x, y, char, fg, bg, attrs}
Renders a single element or list of elements to cells using the default theme.
Parameters
element_or_elements- Single element map, list of elements, or nil
Returns
- List of cells in the format {x, y, char, fg, bg, attrs}
Renders a single element or list of elements to cells. This is the main public API for the renderer.
Parameters
element_or_elements- Single element map, list of elements, or niltheme- Optional theme (defaults to default theme)
Returns
- List of cells in the format {x, y, char, fg, bg, attrs}