Sha256: 1098bd1770faeb729f9211af5a4abb9457dd69aa318e3686904103938b3f636e

Contents?: true

Size: 652 Bytes

Versions: 54

Compression:

Stored size: 652 Bytes

Contents

# frozen_string_literal: true

module Playbook
  module PbButtonToolbar
    class ButtonToolbar
      include Playbook::Props

      partial "pb_button_toolbar/button_toolbar"

      prop :connected, type: Playbook::Props::Boolean, default: false

      prop :orientation, type: Playbook::Props::Enum,
                         values: %w[horizontal vertical],
                         default: "horizontal"

      prop :text

      def classname
        generate_classname("pb_button_toolbar_kit", orientation, connected_class)
      end

    private

      def connected_class
        connected == true ? "connected" : nil
      end
    end
  end
end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
playbook_ui-7.3.0.pre.alpha2 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb
playbook_ui-7.0.1 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb
playbook_ui-6.8.2.pre.alpha1 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb
playbook_ui-7.0.0.pre.alpha15 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb
playbook_ui-7.0.1.pre.alpha14 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb
playbook_ui-7.0.0.pre.alpha14 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb
playbook_ui-7.0.0.pre.alpha13 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb
playbook_ui-7.0.0.pre.alpha12 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb
playbook_ui-7.0.0 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb
playbook_ui-7.0.0.pre.alpha11 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb
playbook_ui-6.8.1 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb
playbook_ui-6.8.0 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb
playbook_ui-6.7.0.pre.alpha1 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb
playbook_ui-6.7.0 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb
playbook_ui-6.6.1 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb
playbook_ui-7.0.0.pre.alpha10 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb
playbook_ui-6.6.0 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb
playbook_ui-6.5.2 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb
playbook_ui-7.0.1.pre.alpha12 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb
playbook_ui-7.0.1.pre.alpha11 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb