Sha256: b20befa9900215a50381f5f5724aa0ccaaa72a6ceb21d8fd5f3cedc2d59503fe

Contents?: true

Size: 448 Bytes

Versions: 14

Compression:

Stored size: 448 Bytes

Contents

# frozen_string_literal: true

module Playbook
  module PbNav
    class Item
      include Playbook::Props

      partial "pb_nav/item"

      prop :active, type: Playbook::Props::Boolean, default: false
      prop :link, default: "#"
      prop :text

      def classname
        generate_classname("pb_nav_list_border_item", active_class)
      end

    private

      def active_class
        active ? "active" : nil
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
playbook_ui-4.1.2 app/pb_kits/playbook/pb_nav/item.rb
playbook_ui-4.1.1 app/pb_kits/playbook/pb_nav/item.rb
playbook_ui-4.1.0 app/pb_kits/playbook/pb_nav/item.rb
playbook_ui-4.0.1 app/pb_kits/playbook/pb_nav/item.rb
playbook_ui-4.0.0 app/pb_kits/playbook/pb_nav/item.rb
playbook_ui-3.5.0 app/pb_kits/playbook/pb_nav/item.rb
playbook_ui-3.4.0 app/pb_kits/playbook/pb_nav/item.rb
playbook_ui-3.3.0 app/pb_kits/playbook/pb_nav/item.rb
playbook_ui-3.2.0 app/pb_kits/playbook/pb_nav/item.rb
playbook_ui-3.1.0 app/pb_kits/playbook/pb_nav/item.rb
playbook_ui-3.0.1 app/pb_kits/playbook/pb_nav/item.rb
playbook_ui-3.0.0 app/pb_kits/playbook/pb_nav/item.rb
playbook_ui-2.9.9 app/pb_kits/playbook/pb_nav/item.rb
playbook_ui-2.9.8 app/pb_kits/playbook/pb_nav/item.rb