Class: Glib::JsonUi::ViewBuilder::Panels::Split

Inherits:
View show all
Defined in:
app/helpers/glib/json_ui/view_builder/panels.rb

Overview

Split panel for creating multi-column layouts with fixed side panels.

Split panels divide the horizontal space into left, center, and right sections. The center section expands to fill available space, while side sections maintain their content width.

Examples:

Two-column layout

panel.panels_split width: 'matchParent', content: ->(content) do
  content.left childViews: ->(left) do
    left.button text: 'Menu'
  end
  content.center childViews: ->(center) do
    center.h1 text: 'Main Content', width: 'matchParent'
  end
end

Three-column layout with alignment

panel.panels_split width: 'matchParent', align: 'middle', content: ->(content) do
  content.left childViews: ->(left) do
    left.button text: 'Back'
  end
  content.center childViews: ->(center) do
    center.label text: 'Page Title'
  end
  content.right childViews: ->(right) do
    right.button text: 'Save'
  end
end

See Also:

  • Garage examples

Instance Attribute Summary

Attributes inherited from JsonUiElement

#json, #page

Method Summary

Methods inherited from View

component_name

Methods inherited from JsonUiElement

#initialize, #props

Constructor Details

This class inherits a constructor from Glib::JsonUi::JsonUiElement