Sha256: a1af9a10be6240a50194d9849f23e5444b90f996ee43ffd442b028b0f6a78629

Contents?: true

Size: 474 Bytes

Versions: 4

Compression:

Stored size: 474 Bytes

Contents

# frozen_string_literal: true

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

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

      def padding_helper
        " p_xs"
      end

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
playbook_ui-13.27.0 app/pb_kits/playbook/pb_dropdown/dropdown_option.rb
playbook_ui-13.26.0.pre.alpha.PBNTR291Dropdownrailsv22840 app/pb_kits/playbook/pb_dropdown/dropdown_option.rb
playbook_ui-13.26.0.pre.alpha.jasoncypretpatch12820 app/pb_kits/playbook/pb_dropdown/dropdown_option.rb
playbook_ui-13.25.0.pre.alpha.PBNTR291Dropdownrailsv22812 app/pb_kits/playbook/pb_dropdown/dropdown_option.rb