Class: UI::ResizablePanelGroup
- Inherits:
-
Phlex::HTML
- Object
- Phlex::HTML
- UI::ResizablePanelGroup
- Includes:
- ResizablePanelGroupBehavior
- Defined in:
- app/components/ui/resizable_panel_group.rb
Overview
ResizablePanelGroup container component (Phlex) Wraps resizable panels with Stimulus controller
Instance Method Summary collapse
-
#initialize(direction: "horizontal", keyboard_resize_by: 10, classes: "", attributes: {}) ⇒ ResizablePanelGroup
constructor
A new instance of ResizablePanelGroup.
- #view_template(&block) ⇒ Object
Methods included from ResizablePanelGroupBehavior
#merged_panel_group_data_attributes, #panel_group_base_classes, #panel_group_data_attributes, #panel_group_html_attributes
Constructor Details
#initialize(direction: "horizontal", keyboard_resize_by: 10, classes: "", attributes: {}) ⇒ ResizablePanelGroup
Returns a new instance of ResizablePanelGroup.
30 31 32 33 34 35 36 |
# File 'app/components/ui/resizable_panel_group.rb', line 30 def initialize(direction: "horizontal", keyboard_resize_by: 10, classes: "", attributes: {}, **) @direction = direction @keyboard_resize_by = keyboard_resize_by @classes = classes @attributes = attributes super() end |
Instance Method Details
#view_template(&block) ⇒ Object
38 39 40 |
# File 'app/components/ui/resizable_panel_group.rb', line 38 def view_template(&block) div(**panel_group_html_attributes, &block) end |