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.14.0.pre.alpha1 app/pb_kits/playbook/pb_selectable_list/selectable_list.rb
playbook_ui-7.16.0 app/pb_kits/playbook/pb_selectable_list/selectable_list.rb
playbook_ui-7.15.1 app/pb_kits/playbook/pb_selectable_list/selectable_list.rb
playbook_ui-7.15.0 app/pb_kits/playbook/pb_selectable_list/selectable_list.rb
playbook_ui-7.14.0 app/pb_kits/playbook/pb_selectable_list/selectable_list.rb
playbook_ui-7.13.0.pre.alpha1 app/pb_kits/playbook/pb_selectable_list/selectable_list.rb
playbook_ui-7.13.0 app/pb_kits/playbook/pb_selectable_list/selectable_list.rb
playbook_ui-7.12.1 app/pb_kits/playbook/pb_selectable_list/selectable_list.rb
playbook_ui-7.12.0 app/pb_kits/playbook/pb_selectable_list/selectable_list.rb
playbook_ui-7.11.1 app/pb_kits/playbook/pb_selectable_list/selectable_list.rb
playbook_ui-7.11.0 app/pb_kits/playbook/pb_selectable_list/selectable_list.rb
playbook_ui-7.11.0.pre.alpha1 app/pb_kits/playbook/pb_selectable_list/selectable_list.rb
playbook_ui-7.10.0 app/pb_kits/playbook/pb_selectable_list/selectable_list.rb
playbook_ui-7.9.0 app/pb_kits/playbook/pb_selectable_list/selectable_list.rb
playbook_ui-7.8.4 app/pb_kits/playbook/pb_selectable_list/selectable_list.rb
playbook_ui-7.8.3 app/pb_kits/playbook/pb_selectable_list/selectable_list.rb
playbook_ui-7.8.2 app/pb_kits/playbook/pb_selectable_list/selectable_list.rb
playbook_ui-7.8.1 app/pb_kits/playbook/pb_selectable_list/selectable_list.rb
playbook_ui-7.8.0 app/pb_kits/playbook/pb_selectable_list/selectable_list.rb
playbook_ui-7.7.0.pre.alpha1 app/pb_kits/playbook/pb_selectable_list/selectable_list.rb