Module: UiBibz::Helpers::Ui::Core::BoxesHelper

Included in:
UiBibz::Helpers::Ui::CoreHelper
Defined in:
lib/ui_bibz/helpers/ui/core/boxes_helper.rb

Instance Method Summary collapse

Instance Method Details

#ui_card(content = nil, options = nil, html_options = nil, &block) ⇒ Object

Card Component

options (Hash) html_options (Hash)

Option tap: true is required if you want add header, block or footer.



11
12
13
14
15
16
17
# File 'lib/ui_bibz/helpers/ui/core/boxes_helper.rb', line 11

def ui_card(content = nil, options = nil, html_options = nil, &block)
  if tapped?(block)
    UiBibz::Ui::Core::Boxes::Card.new(content, options, html_options).tap(&block).render
  else
    UiBibz::Ui::Core::Boxes::Card.new(content, options, html_options, &block).render
  end
end

#ui_card_accordion(content = nil, options = nil, html_options = nil, &block) ⇒ Object

Card Accordion

options (Hash) html_options (Hash)



24
25
26
# File 'lib/ui_bibz/helpers/ui/core/boxes_helper.rb', line 24

def ui_card_accordion(content = nil, options = nil, html_options = nil, &block)
  UiBibz::Ui::Core::Boxes::CardAccordion.new(content, options, html_options).tap(&block).render
end

#ui_card_column(content = nil, options = nil, html_options = nil, &block) ⇒ Object

Card Column Component

options (Hash) html_options (Hash)



56
57
58
# File 'lib/ui_bibz/helpers/ui/core/boxes_helper.rb', line 56

def ui_card_column(content = nil, options = nil, html_options = nil, &block)
  UiBibz::Ui::Core::Boxes::CardColumn.new(content, options, html_options).tap(&block).render
end

#ui_card_deck(content = nil, options = nil, html_options = nil, &block) ⇒ Object

Card Deck Component

options (Hash) html_options (Hash)



40
41
42
# File 'lib/ui_bibz/helpers/ui/core/boxes_helper.rb', line 40

def ui_card_deck(content = nil, options = nil, html_options = nil, &block)
  UiBibz::Ui::Core::Boxes::CardDeck.new(content, options, html_options).tap(&block).render
end

#ui_card_grid(content = nil, options = nil, html_options = nil, &block) ⇒ Object

Card Grid Component

options (Hash) html_options (Hash)



48
49
50
# File 'lib/ui_bibz/helpers/ui/core/boxes_helper.rb', line 48

def ui_card_grid(content = nil, options = nil, html_options = nil, &block)
  UiBibz::Ui::Core::Boxes::CardGrid.new(content, options, html_options).tap(&block).render
end

#ui_card_group(content = nil, options = nil, html_options = nil, &block) ⇒ Object

Card Group Component

options (Hash) html_options (Hash)



32
33
34
# File 'lib/ui_bibz/helpers/ui/core/boxes_helper.rb', line 32

def ui_card_group(content = nil, options = nil, html_options = nil, &block)
  UiBibz::Ui::Core::Boxes::CardGroup.new(content, options, html_options).tap(&block).render
end

#ui_jumbotron(content = nil, options = nil, html_options = nil, &block) ⇒ Object

Jumbotron Component

options (Hash) html_options (Hash)



64
65
66
# File 'lib/ui_bibz/helpers/ui/core/boxes_helper.rb', line 64

def ui_jumbotron(content = nil, options = nil, html_options = nil, &block)
  UiBibz::Ui::Core::Boxes::Jumbotron.new(content, options, html_options, &block).render
end