Sha256: 8892ce5470bb8ec268590643a6d7b91428da59312ab702abe7bc8e091a91acfc

Contents?: true

Size: 1.22 KB

Versions: 352

Compression:

Stored size: 1.22 KB

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 :selected_ids, type: Playbook::Props::Array,
                          default: []
      prop :input_display, type: Playbook::Props::Enum,
                           values: %w[pills none],
                           default: "pills"
      prop :input_name, type: Playbook::Props::String,
                        default: ""
      prop :variant, type: Playbook::Props::Enum,
                     values: %w[multi single],
                     default: "multi"

      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,
          selectedIds: selected_ids,
          input_name: input_name,
          variant: variant,
        }
      end
    end
  end
end

Version data entries

352 entries across 352 versions & 1 rubygems

Version Path
playbook_ui-14.0.0.pre.alpha.PLAY14923518 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb
playbook_ui-14.0.0.pre.alpha.PLAY15063511 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb
playbook_ui-14.0.0.pre.alpha.PA1477timestampkit3509 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb
playbook_ui-14.0.0.pre.alpha.PLAY14733507 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb
playbook_ui-14.0.0.pre.alpha.PBNTR416formpillsizes3506 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb
playbook_ui-14.0.0.pre.alpha.PA1477timestampkit3502 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb
playbook_ui-14.0.0.pre.alpha.PBNTR415starratingform3493 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb
playbook_ui-14.0.0.pre.alpha.PBNTR415starratingform3492 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb
playbook_ui-14.0.0.pre.alpha.PLAY1475bumpaxecoredependency3483 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb
playbook_ui-14.0.0.pre.alpha.PLAY14733479 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb
playbook_ui-14.0.0.pre.alpha.dependabotnpmandyarnreactjoyride2823478 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb
playbook_ui-14.0.0.pre.alpha.PLAY14113475 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb
playbook_ui-14.0.0.pre.alpha.play1447alphatest3462 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb
playbook_ui-14.1.0 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb
playbook_ui-13.34.1.pre.alpha.play1447addrequiredicons3455 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb
playbook_ui-13.34.1.pre.alpha.play1447addrequiredicons3451 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb
playbook_ui-13.34.1.pre.alpha.PLAY14043436 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb
playbook_ui-13.34.1.pre.alpha.pbntr258paginationkitforreact3413 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb
playbook_ui-13.34.1.pre.alpha.pbntr258paginationkitforreact3411 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb
playbook_ui-13.34.1.pre.alpha.pbntr258paginationkitforreact3409 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb