« All helpers
Provides a modal dialog to browse for users.
Usage:
$this->run ('user/util/userchooser');
Or anywhere in your view:
{! user/util/userchooser !}
$.userchooser()
$.userchooser ({ set_id_value: '#field-id', set_name_value: '#display-name', callback: function (id, name, email) { console.log (id); console.log (name); console.log (email); } });
Options:
callback
chosen
chosen_visible
set_id_value
set_name_value
set_email_value
set_mailto
Provides a modal dialog to browse for users.
Usage:
1. Load this handler either in your handler:
Or anywhere in your view:
2. User the
$.userchooser()
function to open the dialog window:Options:
callback
- A function to call with the user id, name, and email.chosen
- A list of users that shouldn't be selectable.chosen_visible
- Whether to display the disabled chosen users or hide them.set_id_value
- The selector of an input or element to update with the user id.set_name_value
- The selector of an input or element to update with the user name.set_email_value
- The selector of an input or element to update with the user email.set_mailto
- The selector of a link to set the mailto: value for.