Raxol. Core. Renderer. View
(Raxol v2.8.0)
View Source
Provides view-related functionality for rendering UI components.
Summary
Functions
Wraps a view with a block-style border.
Wraps a view with a bold border.
Creates a new border around a view.
Creates a new box view with padding and optional border.
Creates a simple box element with the given options.
Creates a button element.
Creates a checkbox element.
Creates a new column layout.
Wraps a view with a double-line border.
Calculates flex layout dimensions based on the given constraints.
Creates a new flex container.
Creates a new view with the specified type and options.
Creates a new panel view (box with border and children).
Creates a process-isolated component node.
Routes an inline do: keyword to :children so that callers can write
column(style: ..., do: child_list) and have the children flow through
the runtime function path the same way column do ... end flows through
the macro path.
Wraps a view with a rounded border.
Creates a new row layout.
Creates a new scrollable view.
Draws its :children with a drop shadow.
Wraps a view with a simple border.
Creates a split pane layout.
Creates a split pane from a named preset.
Creates a table view.
Creates a new text view.
Creates a text input element.
Renders a view with the given options.
Wraps a view with a border, optionally with a title and style.
Types
@type style() :: Raxol.Core.Renderer.View.Types.style()
Style options for a view.
Functions
Wraps a view with a block-style border.
Wraps a view with a bold border.
Creates a new border around a view.
Creates a new box view with padding and optional border.
Creates a simple box element with the given options.
Creates a button element.
Takes the label first, button("Save", on_click: :save), or as an
option, button(label: "Save", on_click: :save).
Creates a checkbox element.
Takes the label first, checkbox("Accept terms", checked: true), or as an
option, checkbox(label: "Accept terms", checked: true).
Creates a new column layout.
Wraps a view with a double-line border.
Calculates flex layout dimensions based on the given constraints.
Creates a new flex container.
Creates a new view with the specified type and options.
Options
:type- The type of view to create:position-{x, y}offset from the content origin of the container that lays the view out: inside a box's border and padding, a row's or column's padding edge, the screen's corner for the root view. A positioned view is out of flow: its siblings are laid out as if it were not there, and it draws over them. Defaultnil, in flow.:z_index- Drawing order among siblings: a view draws over every sibling with a lower:z_indexwhere they overlap, whatever their order in:children; equal values keep the container's own order. Default0.:size- Size of the view {width, height}; omitted, it fills the space the layout gives it:style- Style options for the view:fg/:bg- Foreground / background color:border- Border style:padding/:margin- Spacing:children- Child views:content- Content for the view
Creates a new panel view (box with border and children).
Creates a process-isolated component node.
Routes an inline do: keyword to :children so that callers can write
column(style: ..., do: child_list) and have the children flow through
the runtime function path the same way column do ... end flows through
the macro path.
Without this, Elixir parses column(style: ..., do: child_list) as a
single-arg call with a kwlist, matches def column/1, and the
downstream layout function never sees the children — silently rendering
an empty container. The dynamic-children bug that broke 10+ playground
demos at once.
Wraps a view with a rounded border.
Creates a new row layout.
Creates a new scrollable view.
Draws its :children with a drop shadow.
See Raxol.Core.Renderer.View.Components.shadow/1 for the options.
Wraps a view with a simple border.
Creates a split pane layout.
Creates a split pane from a named preset.
Creates a table view.
Creates a new text view.
Creates a text input element.
Renders a view with the given options.
Wraps a view with a border, optionally with a title and style.