class RatatuiRuby::Layout
A widget that splits an area into multiple sections based on constraints.
- direction
-
The direction of the layout (:vertical or :horizontal).
- constraints
-
An array of
Constraintobjects defining the size of each section. - children
-
An array of widgets to render within each section.
Public Class Methods
Source
# File lib/ratatui_ruby/schema/layout.rb, line 18 def initialize(direction: :vertical, constraints: [], children: []) super end
- direction
-
The direction of the layout (:vertical or :horizontal).
- constraints
-
An array of
Constraintobjects defining the size of each section. - children
-
An array of widgets to render within each section.
Calls superclass method