Sha256: 2cc4d25f79a28e9b379224df4031c90c134b6be2ebdcb0a94b4f209c64805f87
Contents?: true
Size: 1.78 KB
Versions: 6
Compression:
Stored size: 1.78 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 tap?(content, options) 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, &block) UiBibz::Ui::Core::Boxes::CardAccordion.new(content, options, html_options).tap(&block).render end # Card Group Component # # +options+ (Hash) # +html_options+ (Hash) 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 # Card Deck Component # # +options+ (Hash) # +html_options+ (Hash) 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 # Card Column Component # # +options+ (Hash) # +html_options+ (Hash) 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 # Jumbotron Component # # +options+ (Hash) # +html_options+ (Hash) def ui_jumbotron(content = nil, options = nil, html_options = nil, &block) UiBibz::Ui::Core::Boxes::Jumbotron.new(content, options, html_options, &block).render end end
Version data entries
6 entries across 6 versions & 1 rubygems