Sha256: 58f8c22afacb68935bd880dd0f5d51b42460b71559ea746c11894f1ba11a2390
Contents?: true
Size: 750 Bytes
Versions: 23
Compression:
Stored size: 750 Bytes
Contents
module UiBibz::Ui::Core # Create a listBody # # 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 ListBody < 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 :p, content, html_options end private def component_html_classes 'list-group-item-text' end end end
Version data entries
23 entries across 23 versions & 1 rubygems