Sha256: 4e2955268724341aeff88fa7a01adea4e6c8df9697d10635960ea7e8f0f87647
Contents?: true
Size: 864 Bytes
Versions: 7
Compression:
Stored size: 864 Bytes
Contents
module UiBibz::Ui::Core::Lists::Components # 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 < 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 output = [content_tag(:p, content, html_options)] output << content_tag(:small, options[:extra]) output.join.html_safe end private def component_html_classes 'mb-1' end end end
Version data entries
7 entries across 7 versions & 1 rubygems