Sha256: 319eaff1f93cc8f1a6f4010d090a0b2a32151d89bb1b193d6cdf419260cd607c
Contents?: true
Size: 870 Bytes
Versions: 55
Compression:
Stored size: 870 Bytes
Contents
# frozen_string_literal: true 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 # Render html tag def pre_render content_tag :div, html_options do concat content_tag(:h5, content, class: 'mb-1') concat content_tag(:small, options[:extra]) end end private def component_html_classes super << %w[d-flex w-100 justify-content-between] end end end
Version data entries
55 entries across 55 versions & 1 rubygems