Class: UiBibz::Ui::Core::ModalFooter

Inherits:
Component show all
Defined in:
lib/ui_bibz/ui/core/modal/components/modal_footer.rb

Overview

Create a modal footer

Attributes

  • content - Content of element

  • options - Options of element

  • html_options - Html Options of element

Options

You can add HTML attributes using the html_options. You can pass arguments in options attribute:

Signatures

UiBibz::Ui::Core::ModalFooter.new(content, options = nil, html_options = nil)

UiBibz::Ui::Core::ModalFooter.new(options = nil, html_options = nil) do
  content
end

Examples

UiBibz::Ui::Core::ModalFooter.new.render

UiBibz::Ui::Core::ModalFooter.new do
  'Exemple'
end.render

Instance Attribute Summary

Attributes inherited from Component

#content, #html_options, #options

Attributes inherited from Base

#output_buffer

Instance Method Summary (collapse)

Methods inherited from Component

#add_classes, #badge_html, #class_and_html_options, #glyph, #glyph_and_content_html, #glyph_with_space, #state

Methods inherited from Base

#i18n_set?

Constructor Details

- (ModalFooter) initialize(content = nil, options = nil, html_options = nil, &block)

See UiBibz::Ui::Core::Component.initialize



35
36
37
# File 'lib/ui_bibz/ui/core/modal/components/modal_footer.rb', line 35

def initialize content = nil, options = nil, html_options = nil, &block
  super
end

Instance Method Details

- (Object) render

Render html tag



40
41
42
# File 'lib/ui_bibz/ui/core/modal/components/modal_footer.rb', line 40

def render
   :div, @content, class_and_html_options("modal-footer")
end