Class: PhlexKit::ResizableHandle
- Inherits:
-
BaseComponent
- Object
- Phlex::HTML
- BaseComponent
- PhlexKit::ResizableHandle
- Defined in:
- app/components/phlex_kit/resizable/resizable_handle.rb
Overview
Drag handle between two ResizablePanels. See resizable_panel_group.rb.
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ ResizableHandle
constructor
A new instance of ResizableHandle.
- #view_template ⇒ Object
Methods inherited from BaseComponent
Constructor Details
#initialize(**attrs) ⇒ ResizableHandle
Returns a new instance of ResizableHandle.
4 5 6 |
# File 'app/components/phlex_kit/resizable/resizable_handle.rb', line 4 def initialize(**attrs) @attrs = attrs end |
Instance Method Details
#view_template ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'app/components/phlex_kit/resizable/resizable_handle.rb', line 8 def view_template div(**mix({ class: "pk-resizable-handle", role: "separator", tabindex: "0", aria: { orientation: "vertical" }, data: { phlex_kit__resizable_target: "handle", action: "pointerdown->phlex-kit--resizable#start" } }, @attrs)) end |