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-6.3.1 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb
playbook_ui-7.0.0.pre.alpha4 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb
playbook_ui-7.0.0.pre.alpha3 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb
playbook_ui-7.0.0.pre.alpha2 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb
playbook_ui-6.3.0 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb
playbook_ui-6.2.1 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb
playbook_ui-6.2.0 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb
playbook_ui-7.0.0.pre.alpha1 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb
playbook_ui-6.1.0.pre.alpha5 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb
playbook_ui-6.1.0.pre.alpha4 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb
playbook_ui-6.1.0.pre.alpha3 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb
playbook_ui-6.1.0.pre.alpha2 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb
playbook_ui-6.1.0.pre.alpha1 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb
playbook_ui-6.1.0 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb