Sha256: 849bc704d16e62d63359dff36c9ce1d3b471a2e9680fa7779c1e351252edfa7d

Contents?: true

Size: 407 Bytes

Versions: 532

Compression:

Stored size: 407 Bytes

Contents

# frozen_string_literal: true

module Playbook
  module PbDropdown
    class DropdownOption < Playbook::KitBase
      prop :option, type: Playbook::Props::HashProp
      prop :id, type: Playbook::Props::String

      def data
        Hash(prop(:data)).merge("dropdown_option_label": option)
      end

      def classname
        generate_classname("pb_dropdown_option", "list")
      end
    end
  end
end

Version data entries

532 entries across 532 versions & 1 rubygems

Version Path
playbook_ui-14.6.2 app/pb_kits/playbook/pb_dropdown/dropdown_option.rb
playbook_ui-14.7.0.pre.rc.2 app/pb_kits/playbook/pb_dropdown/dropdown_option.rb
playbook_ui-14.6.0.pre.alpha.dropdownclassfix4224 app/pb_kits/playbook/pb_dropdown/dropdown_option.rb
playbook_ui-14.6.0.pre.alpha.PBNTR5554223 app/pb_kits/playbook/pb_dropdown/dropdown_option.rb
playbook_ui-14.6.0.pre.alpha.PLAY1485selectablecardoverflowoutlinebug4222 app/pb_kits/playbook/pb_dropdown/dropdown_option.rb
playbook_ui-14.6.1 app/pb_kits/playbook/pb_dropdown/dropdown_option.rb
playbook_ui-14.7.0.pre.rc.1 app/pb_kits/playbook/pb_dropdown/dropdown_option.rb
playbook_ui-14.6.0.pre.alpha.play1586datearea4218 app/pb_kits/playbook/pb_dropdown/dropdown_option.rb
playbook_ui-14.6.0.pre.alpha.PBNTR5554217 app/pb_kits/playbook/pb_dropdown/dropdown_option.rb
playbook_ui-14.7.0.pre.rc.0 app/pb_kits/playbook/pb_dropdown/dropdown_option.rb
playbook_ui-14.5.0.pre.alpha.PLAY1485selectablecardoverflowoutlinebug4216 app/pb_kits/playbook/pb_dropdown/dropdown_option.rb
playbook_ui-14.6.0 app/pb_kits/playbook/pb_dropdown/dropdown_option.rb
playbook_ui-14.6.0.pre.rc.25 app/pb_kits/playbook/pb_dropdown/dropdown_option.rb
playbook_ui-14.6.0.pre.rc.24 app/pb_kits/playbook/pb_dropdown/dropdown_option.rb
playbook_ui-14.6.0.pre.rc.23 app/pb_kits/playbook/pb_dropdown/dropdown_option.rb
playbook_ui-14.6.0.pre.rc.22 app/pb_kits/playbook/pb_dropdown/dropdown_option.rb
playbook_ui-14.6.0.pre.rc.21 app/pb_kits/playbook/pb_dropdown/dropdown_option.rb
playbook_ui-14.5.0.pre.alpha.PLAY1548intltelinputupdatelatest4175 app/pb_kits/playbook/pb_dropdown/dropdown_option.rb
playbook_ui-14.6.0.pre.rc.20 app/pb_kits/playbook/pb_dropdown/dropdown_option.rb
playbook_ui-14.5.0.pre.alpha.PLAY1548intltelinputupdatelatest4162 app/pb_kits/playbook/pb_dropdown/dropdown_option.rb