Class: Shadcn::ResizablePanelComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- Shadcn::ResizablePanelComponent
- Defined in:
- app/components/shadcn/resizable_panel_component.rb
Overview
Individual panel within a ResizablePanelGroup
Constant Summary collapse
- BASE_CLASSES =
"relative"
Instance Attribute Summary
Attributes inherited from BaseComponent
#class_name, #data, #html_options
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(default_size: nil, min_size: nil, max_size: nil, direction: :horizontal, **options) ⇒ ResizablePanelComponent
constructor
A new instance of ResizablePanelComponent.
Methods inherited from BaseComponent
Methods included from Shadcn::Rails::Helpers::ClassNameHelper
Constructor Details
#initialize(default_size: nil, min_size: nil, max_size: nil, direction: :horizontal, **options) ⇒ ResizablePanelComponent
12 13 14 15 16 17 18 |
# File 'app/components/shadcn/resizable_panel_component.rb', line 12 def initialize(default_size: nil, min_size: nil, max_size: nil, direction: :horizontal, **) super(**) @default_size = default_size @min_size = min_size @max_size = max_size @direction = direction end |
Instance Method Details
#call ⇒ Object
20 21 22 |
# File 'app/components/shadcn/resizable_panel_component.rb', line 20 def call content_tag(:div, content, panel_attributes) end |