Sha256: 0a4db77eb71a188b3bf3d14c992317c09b8e336c85ec100dccb8a78ff3e30020

Contents?: true

Size: 1.25 KB

Versions: 6

Compression:

Stored size: 1.25 KB

Contents

module UiBibz::Helpers::Ui::Core::CardsHelper

  # 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 is_tap(content, options)
      UiBibz::Ui::Core::Cards::Card.new(content, options, html_options).tap(&block).render
    else
      UiBibz::Ui::Core::Cards::Card.new(content, options, html_options, &block).render
    end
  end

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

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

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

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ui_bibz-2.0.0.beta2.5 lib/ui_bibz/helpers/ui/core/cards_helper.rb
ui_bibz-2.0.0.beta2.4 lib/ui_bibz/helpers/ui/core/cards_helper.rb
ui_bibz-2.0.0.beta2.3 lib/ui_bibz/helpers/ui/core/cards_helper.rb
ui_bibz-2.0.0.beta2.2 lib/ui_bibz/helpers/ui/core/cards_helper.rb
ui_bibz-2.0.0.beta2.1 lib/ui_bibz/helpers/ui/core/cards_helper.rb
ui_bibz-2.0.0.beta2 lib/ui_bibz/helpers/ui/core/cards_helper.rb