Sha256: b73fcb3be5d68b0b7ec24cb9a89db89498e53754d865c7558d9c9acb5439d211
Contents?: true
Size: 1.05 KB
Versions: 9
Compression:
Stored size: 1.05 KB
Contents
module UiBibz::Ui::Core::Cards # 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::Cards::CardListGroup.new(content, options = nil, html_options = nil) # # UiBibz::Ui::Core::Cards::CardListGroup.new(options = nil, html_options = nil) do # content # end # # ==== Examples # # UiBibz::Ui::Core::Cards::CardListGroup.new.render # # UiBibz::Ui::Core::Cards::CardListGroup.new do # 'Exemple' # end.render # class CardListGroup < UiBibz::Ui::Core::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 ["list-group-flush", "list-group"] end end end
Version data entries
9 entries across 9 versions & 1 rubygems