Sha256: e5bfdc9f816b5bcf4d9cf9bf15ecc087ed7ad23cd4c1b8c3d3c3f3fbe4785ba2

Contents?: true

Size: 1.96 KB

Versions: 13

Compression:

Stored size: 1.96 KB

Contents

# frozen_string_literal: true

module UiBibz::Helpers::Ui::Core::BoxesHelper
  # Card Component
  #
  # +options+ (Hash)
  # +html_options+ (Hash)
  #
  # Option +tap: true+ is required if you want add +header+, +block+ or
  # +footer+.
  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

  # Card Accordion
  #
  # +options+ (Hash)
  # +html_options+ (Hash)
  #
  def ui_card_accordion(content = nil, options = nil, html_options = nil, &)
    UiBibz::Ui::Core::Boxes::CardAccordion.new(content, options, html_options).tap(&).render
  end

  # Card Group Component
  #
  # +options+ (Hash)
  # +html_options+ (Hash)
  def ui_card_group(content = nil, options = nil, html_options = nil, &)
    UiBibz::Ui::Core::Boxes::CardGroup.new(content, options, html_options).tap(&).render
  end

  # Card Deck Component
  #
  # +options+ (Hash)
  # +html_options+ (Hash)
  def ui_card_deck(content = nil, options = nil, html_options = nil, &)
    UiBibz::Ui::Core::Boxes::CardDeck.new(content, options, html_options).tap(&).render
  end

  # Card Grid Component
  #
  # +options+ (Hash)
  # +html_options+ (Hash)
  def ui_card_grid(content = nil, options = nil, html_options = nil, &)
    UiBibz::Ui::Core::Boxes::CardGrid.new(content, options, html_options).tap(&).render
  end

  # Card Column Component
  #
  # +options+ (Hash)
  # +html_options+ (Hash)
  def ui_card_column(content = nil, options = nil, html_options = nil, &)
    UiBibz::Ui::Core::Boxes::CardColumn.new(content, options, html_options).tap(&).render
  end

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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ui_bibz-4.0.0.beta18 lib/ui_bibz/helpers/ui/core/boxes_helper.rb
ui_bibz-4.0.0.beta17 lib/ui_bibz/helpers/ui/core/boxes_helper.rb
ui_bibz-4.0.0.beta16 lib/ui_bibz/helpers/ui/core/boxes_helper.rb
ui_bibz-4.0.0.beta15 lib/ui_bibz/helpers/ui/core/boxes_helper.rb
ui_bibz-4.0.0.beta14 lib/ui_bibz/helpers/ui/core/boxes_helper.rb
ui_bibz-4.0.0.beta13 lib/ui_bibz/helpers/ui/core/boxes_helper.rb
ui_bibz-4.0.0.beta10 lib/ui_bibz/helpers/ui/core/boxes_helper.rb
ui_bibz-4.0.0.beta9 lib/ui_bibz/helpers/ui/core/boxes_helper.rb
ui_bibz-4.0.0.beta8 lib/ui_bibz/helpers/ui/core/boxes_helper.rb
ui_bibz-4.0.0.beta7 lib/ui_bibz/helpers/ui/core/boxes_helper.rb
ui_bibz-4.0.0.beta6 lib/ui_bibz/helpers/ui/core/boxes_helper.rb
ui_bibz-4.0.0.beta4 lib/ui_bibz/helpers/ui/core/boxes_helper.rb
ui_bibz-4.0.0.beta3 lib/ui_bibz/helpers/ui/core/boxes_helper.rb