Sha256: 5e5d90b87bdb87817ea6072d829c2432cab3950668639f6158f6f1dffdbf189c

Contents?: true

Size: 835 Bytes

Versions: 8

Compression:

Stored size: 835 Bytes

Contents

# frozen_string_literal: true

module Playbook
  module PbMultiLevelSelect
    class MultiLevelSelect < Playbook::KitBase
      prop :id
      prop :name
      prop :tree_data, type: Playbook::Props::Array,
                       default: []
      prop :return_all_selected, type: Playbook::Props::Boolean,
                                 default: false
      prop :input_display, type: Playbook::Props::Enum,
                           values: %w[pills none],
                           default: "pills"

      def classname
        generate_classname("pb_multi_level_select")
      end

      def multi_level_select_options
        {
          id: id,
          inputDisplay: input_display,
          name: name,
          treeData: tree_data,
          returnAllSelected: return_all_selected,
        }
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
playbook_ui-12.30.1.pre.alpha.play846responsivespacingglobalpropsneedsdefault924 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb
playbook_ui-12.30.1.pre.alpha.hovertesting914 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb
playbook_ui-12.30.1.pre.alpha.PLAY906multilevelselectedidsprop912 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb
playbook_ui-12.30.1.pre.alpha.PLAY802responsivetitlekit909 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb
playbook_ui-12.30.1 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb
playbook_ui-12.30.0 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb
playbook_ui-12.28.0.pre.alpha.PLAY863multilevelv2877 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb
playbook_ui-12.28.0.pre.alpha.PLAY863multilevelv2876 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb