Sha256: d934904c75d853eac94cafb03b99765731532829dbb73be39a37912617f91cd6
Contents?: true
Size: 1.03 KB
Versions: 13
Compression:
Stored size: 1.03 KB
Contents
# frozen_string_literal: true module UiBibz::Ui::Core::Windows::Components # Create a offcanvas body # # ==== 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::OffcanvasBody.new(content, options = nil, html_options = nil) # # UiBibz::Ui::Core::OffcanvasBody.new(options = nil, html_options = nil) do # content # end # # ==== Examples # # UiBibz::Ui::Core::OffcanvasBody.new.render # # UiBibz::Ui::Core::OffcanvasBody.new do # 'Exemple' # end.render # class OffcanvasBody < UiBibz::Ui::Core::Component # See UiBibz::Ui::Core::Component.initialize # Render html tag def pre_render content_tag :div, content, html_options end private def component_html_classes 'offcanvas-body' end end end
Version data entries
13 entries across 13 versions & 1 rubygems