Sha256: 9bd9e023da5fde5733f113a198d7c019a7b74644dcfa4595189aec240fec4684
Contents?: true
Size: 1.32 KB
Versions: 2
Compression:
Stored size: 1.32 KB
Contents
# Helper class that produces a person search widget than includes typeahead and # CalNet lookup functionality. module UcbRails::LpsTypeaheadHelper # @option options [Symbol] :name (:person_search) the name of the <input> field # @option options [String] :label ('User') the text of the field label # @option options [Boolean] :required (false) is the field required # @option options [String] :value (params[:name]) the value of the field # @option options [String] :placeholder ('Type name to search') the html +placeholder+ attribute # @option options [String] :hint ('Click icon to search CalNet') hint text # @option options [String] :result_link_text ('Select') the text of the link button in search results # @option options [String] :result_link_class ('lps-typeahead-item') class to be added the the results link # @option options [String] :uid_dom_id ('uid') the dom-id of the (hidden) uid <input> # @option options [String] :typeahead_url ('/ucb_rails/admin/users/typeahead_search') the typeahead url # @option options [String] :ldap_search_url ('/ucb_rails/ldap_person_search/) the ldap search rul # @option options [Boolean] :ldap_search (true) include the icon/markup for ldap searches def lps_typeahead_search_field(options={}) UcbRails::Renderer::LpsTypeaheadSearchField.new(self, options).html end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ucb_rails-0.0.14 | app/helpers/ucb_rails/lps_typeahead_helper.rb |
ucb_rails-0.0.13 | app/helpers/ucb_rails/lps_typeahead_helper.rb |