Sha256: 08513eb81f16514893150bc6d2be1d1d11a0ff6733df7ea8d08420ee59de6694

Contents?: true

Size: 553 Bytes

Versions: 27

Compression:

Stored size: 553 Bytes

Contents

# frozen_string_literal: true

module Playbook
  module PbSelectableList
    class SelectableList
      include Playbook::Props

      partial "pb_selectable_list/selectable_list"

      prop :variant, type: Playbook::Props::Enum,
                     values: %w[radio checkbox],
                     default: "checkbox"

      prop :text, type: Playbook::Props::String

      prop :items, type: Playbook::Props::Array,
                   default: []

      def classname
        generate_classname("pb_selectable_list_kit")
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
playbook_ui-7.7.0 app/pb_kits/playbook/pb_selectable_list/selectable_list.rb
playbook_ui-7.6.2.pre.alpha1 app/pb_kits/playbook/pb_selectable_list/selectable_list.rb
playbook_ui-7.6.2 app/pb_kits/playbook/pb_selectable_list/selectable_list.rb
playbook_ui-7.6.1.pre.alpha1 app/pb_kits/playbook/pb_selectable_list/selectable_list.rb
playbook_ui-7.6.1 app/pb_kits/playbook/pb_selectable_list/selectable_list.rb
playbook_ui-7.6.0 app/pb_kits/playbook/pb_selectable_list/selectable_list.rb
playbook_ui-7.4.0.pre.alpha6 app/pb_kits/playbook/pb_selectable_list/selectable_list.rb