Sha256: a44a3255a19da57916396f7438b9cb5fe53b062ec154e169f7e3de955f05625a
Contents?: true
Size: 795 Bytes
Versions: 7
Compression:
Stored size: 795 Bytes
Contents
module UiBibz::Ui::Core::Lists::Components # Create a listHeader # # This element is an extend of UiBibz::Ui::Core::Component. # # ==== 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: class ListHeader < UiBibz::Ui::Core::Component # See UiBibz::Ui::Core::Component.initialize def initialize content = nil, options = nil, html_options = nil, &block super end # Render html tag def render content_tag :h4, content, html_options end private def component_html_classes 'list-group-item-heading' end end end
Version data entries
7 entries across 7 versions & 1 rubygems