Class: UI::DrawerHandle

Inherits:
Phlex::HTML
  • Object
show all
Includes:
DrawerHandleBehavior
Defined in:
app/components/ui/drawer_handle.rb

Instance Method Summary collapse

Methods included from DrawerHandleBehavior

#drawer_handle_classes, #drawer_handle_container_base_classes, #drawer_handle_data_attributes, #drawer_handle_html_attributes

Constructor Details

#initialize(classes: nil, **attributes) ⇒ DrawerHandle

Returns a new instance of DrawerHandle.



6
7
8
9
# File 'app/components/ui/drawer_handle.rb', line 6

def initialize(classes: nil, **attributes)
  @classes = classes
  @attributes = attributes
end

Instance Method Details

#view_template ⇒ Object



11
12
13
# File 'app/components/ui/drawer_handle.rb', line 11

def view_template
  div(**drawer_handle_html_attributes)
end