Sha256: 6621d9c417563eb12789569e88e53b8342076273e79db688f32d04d1c7e0331c

Contents?: true

Size: 697 Bytes

Versions: 47

Compression:

Stored size: 697 Bytes

Contents

# frozen_string_literal: true

module Playbook
  module PbTypeahead
    class Typeahead
      include Playbook::Props

      prop :label
      prop :name
      prop :value
      prop :placeholder
      prop :search_term_minimum_length, default: 3
      prop :search_debounce_timeout, default: 250

      partial "pb_typeahead/typeahead"

      def classname
        generate_classname("pb_typeahead_kit")
      end

      def data
        Hash(values[:data]).merge(
          pb_typeahead_kit: true,
          pb_typeahead_kit_search_term_minimum_length: search_term_minimum_length,
          pb_typeahead_kit_search_debounce_timeout: search_debounce_timeout
        )
      end
    end
  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
playbook_ui-7.3.0.pre.alpha2 app/pb_kits/playbook/pb_typeahead/typeahead.rb
playbook_ui-7.0.1 app/pb_kits/playbook/pb_typeahead/typeahead.rb
playbook_ui-6.8.2.pre.alpha1 app/pb_kits/playbook/pb_typeahead/typeahead.rb
playbook_ui-7.0.0.pre.alpha15 app/pb_kits/playbook/pb_typeahead/typeahead.rb
playbook_ui-7.0.1.pre.alpha14 app/pb_kits/playbook/pb_typeahead/typeahead.rb
playbook_ui-7.0.0.pre.alpha14 app/pb_kits/playbook/pb_typeahead/typeahead.rb
playbook_ui-7.0.0.pre.alpha13 app/pb_kits/playbook/pb_typeahead/typeahead.rb
playbook_ui-7.0.0.pre.alpha12 app/pb_kits/playbook/pb_typeahead/typeahead.rb
playbook_ui-7.0.0 app/pb_kits/playbook/pb_typeahead/typeahead.rb
playbook_ui-7.0.0.pre.alpha11 app/pb_kits/playbook/pb_typeahead/typeahead.rb
playbook_ui-6.8.1 app/pb_kits/playbook/pb_typeahead/typeahead.rb
playbook_ui-6.8.0 app/pb_kits/playbook/pb_typeahead/typeahead.rb
playbook_ui-6.7.0.pre.alpha1 app/pb_kits/playbook/pb_typeahead/typeahead.rb
playbook_ui-6.7.0 app/pb_kits/playbook/pb_typeahead/typeahead.rb
playbook_ui-6.6.1 app/pb_kits/playbook/pb_typeahead/typeahead.rb
playbook_ui-7.0.0.pre.alpha10 app/pb_kits/playbook/pb_typeahead/typeahead.rb
playbook_ui-6.6.0 app/pb_kits/playbook/pb_typeahead/typeahead.rb
playbook_ui-6.5.2 app/pb_kits/playbook/pb_typeahead/typeahead.rb
playbook_ui-7.0.1.pre.alpha12 app/pb_kits/playbook/pb_typeahead/typeahead.rb
playbook_ui-7.0.1.pre.alpha11 app/pb_kits/playbook/pb_typeahead/typeahead.rb