Sha256: 885222846c2e7cf2580f57a354837fa98cc413e2acfcaff825ae3bd4ef16850d

Contents?: true

Size: 720 Bytes

Versions: 22

Compression:

Stored size: 720 Bytes

Contents

module UiBibz::Ui::Core::Navs

  # 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

    def initialize content = nil, options = nil, html_options = nil, &block
      super
    end

    # Render html tag
    def render
      content_tag :li, content, html_options
    end

  private

    def component_html_classes
      'nav-item'
    end

  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
ui_bibz-2.0.0.alpha16 lib/ui_bibz/ui/core/navs/components/nav_link_list.rb
ui_bibz-2.0.0.alpha15 lib/ui_bibz/ui/core/navs/components/nav_link_list.rb