Sha256: 6490e5909db064e99c0ddb5cedb3bd5c28fbe429fea5662d41fea21af69cd876

Contents?: true

Size: 515 Bytes

Versions: 14

Compression:

Stored size: 515 Bytes

Contents

# frozen_string_literal: true

module Playbook
  module PbNav
    class Nav
      include ActionView::Helpers::TagHelper
      include Playbook::Props

      partial "pb_nav/nav"

      prop :link, default: "#"
      prop :title
      prop :orientation, type: Playbook::Props::Enum,
                    values: ["vertical", "horizontal"],
                    default: "vertical"

      def classname
        [
          "pb_nav_list",
          orientation
        ].compact.join("_")
      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/nav.rb
playbook_ui-4.1.1 app/pb_kits/playbook/pb_nav/nav.rb
playbook_ui-4.1.0 app/pb_kits/playbook/pb_nav/nav.rb
playbook_ui-4.0.1 app/pb_kits/playbook/pb_nav/nav.rb
playbook_ui-4.0.0 app/pb_kits/playbook/pb_nav/nav.rb
playbook_ui-3.5.0 app/pb_kits/playbook/pb_nav/nav.rb
playbook_ui-3.4.0 app/pb_kits/playbook/pb_nav/nav.rb
playbook_ui-3.3.0 app/pb_kits/playbook/pb_nav/nav.rb
playbook_ui-3.2.0 app/pb_kits/playbook/pb_nav/nav.rb
playbook_ui-3.1.0 app/pb_kits/playbook/pb_nav/nav.rb
playbook_ui-3.0.1 app/pb_kits/playbook/pb_nav/nav.rb
playbook_ui-3.0.0 app/pb_kits/playbook/pb_nav/nav.rb
playbook_ui-2.9.9 app/pb_kits/playbook/pb_nav/nav.rb
playbook_ui-2.9.8 app/pb_kits/playbook/pb_nav/nav.rb