Sha256: 66d2437cc6796bc3b8986f5bde3d6c1b975a0941038a23643ead937bf4ba112f
Contents?: true
Size: 664 Bytes
Versions: 55
Compression:
Stored size: 664 Bytes
Contents
# frozen_string_literal: true module UiBibz::Ui::Core::Navigations # Create a NavLinkList # # 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 NavLinkList < UiBibz::Ui::Core::Component # Render html tag def pre_render content_tag :li, content, html_options end private def component_html_classes 'nav-item' end end end
Version data entries
55 entries across 55 versions & 1 rubygems