Class: UI::DrawerOverlay
- Inherits:
-
Phlex::HTML
- Object
- Phlex::HTML
- UI::DrawerOverlay
- Includes:
- DrawerOverlayBehavior
- Defined in:
- app/components/ui/drawer_overlay.rb
Instance Method Summary collapse
-
#initialize(open: false, classes: nil, **attributes) ⇒ DrawerOverlay
constructor
A new instance of DrawerOverlay.
- #view_template ⇒ Object
Methods included from DrawerOverlayBehavior
#drawer_overlay_base_classes, #drawer_overlay_classes, #drawer_overlay_container_base_classes, #drawer_overlay_container_classes, #drawer_overlay_container_data_attributes, #drawer_overlay_container_html_attributes, #drawer_overlay_data_attributes, #drawer_overlay_html_attributes, #merged_drawer_overlay_container_data_attributes
Constructor Details
#initialize(open: false, classes: nil, **attributes) ⇒ DrawerOverlay
Returns a new instance of DrawerOverlay.
6 7 8 9 10 |
# File 'app/components/ui/drawer_overlay.rb', line 6 def initialize(open: false, classes: nil, **attributes) @open = open @classes = classes @attributes = attributes end |
Instance Method Details
#view_template ⇒ Object
12 13 14 15 16 |
# File 'app/components/ui/drawer_overlay.rb', line 12 def view_template div(**) do div(**) end end |