Class: UI::SheetFooter

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

Instance Method Summary collapse

Methods included from SheetFooterBehavior

#sheet_footer_base_classes, #sheet_footer_classes, #sheet_footer_html_attributes

Constructor Details

#initialize(classes: nil) ⇒ SheetFooter

Returns a new instance of SheetFooter.



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

def initialize(classes: nil)
  @classes = classes
end

Instance Method Details

#view_template(&block) ⇒ Object



10
11
12
13
14
# File 'app/components/ui/sheet_footer.rb', line 10

def view_template(&block)
  div(**sheet_footer_html_attributes) do
    yield if block_given?
  end
end