Sha256: 03f3266662a154714cfd6f646d85e2173873700addecfb1170ef3b1b482b2932
Contents?: true
Size: 1.1 KB
Versions: 48
Compression:
Stored size: 1.1 KB
Contents
# frozen_string_literal: true module UiBibz::Ui::Core::Boxes::Components # Create a card list_group # # ==== 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::Boxes::CardListGroup.new(content, options = nil, html_options = nil) # # UiBibz::Ui::Core::Boxes::CardListGroup.new(options = nil, html_options = nil) do # content # end # # ==== Examples # # UiBibz::Ui::Core::Boxes::CardListGroup.new.render # # UiBibz::Ui::Core::Boxes::CardListGroup.new do # 'Exemple' # end.render # class CardListGroup < UiBibz::Ui::Core::Lists::ListGroup # See UiBibz::Ui::Core::Component.initialize def initialize(content = nil, options = nil, html_options = nil, &block) super @lists = [] end protected def component_html_classes %w[list-group-flush list-group] end end end
Version data entries
48 entries across 48 versions & 1 rubygems