UserPickerΒΆ
-
/libs/granite/ui/components/coral/foundation/form/userpicker Warning
Deprecated; please use
/libs/granite/ui/components/coral/foundation/authorizable/autocomplete.An autocomplete component that is designed to allow the user to pick the user from suggested list.
It extends
Fieldcomponent.It has the following content structure:
-
granite:FormUserPicker
- granite:FormField
- namestring
The name that identifies the field when submitting the form.
- valuestring
The value of the field.
- emptyTextstring
- i18n
A hint to the user of what can be entered in the field.
- disabledboolean
Indicates if the field is in disabled state.
- requiredboolean
Indicates if the field is mandatory to be filled.
- multipleboolean
trueto allow selection of multiple authorizables;falseotherwise.
- validationstring
- multiple
The name of the validator to be applied. E.g.
foundation.jcr.name. See validation in Granite UI.
- srcstring
The URI Template that is giving the response of HTML of the suggestion. The format of the HTML is a stream of
lielements. For example:<li class="coral-SelectList-item coral-SelectList-item--option" data-value="itemvalue1">Item Display 1</li> <li class="coral-SelectList-item coral-SelectList-item--option" data-value="itemvalue2">Item Display 2</li>
The URI Template supports
start,end,queryvariables.- start
- The start index of the paging of selection items to be returned.
- end
- The end index of the paging of selection items to be returned.
- query
- The text that the user queries for.
Example:
/path.html?start={start}&end={end}&query={query}&my-other-param=param1If this property is not set, the default value is used that is giving the response of the users in Granite.
- impersonatesOnlyboolean
trueto display the users suggestion that are allowed to be impersonated by current user;falseotherwise. This property is only applicable when thesrcproperty is not specified.
- groupsOnlyboolean
trueto display only groups suggestions;falseto display only users suggestions. This property is only applicable when thesrcproperty is not specified.
- showAllAuthorizablesboolean
trueto display both users and groups;falseotherwise. This property is only applicable when thesrcproperty is not specified.
- serviceUsersOnlyboolean
trueto show service users only from the suggestion;falseotherwise. This property is only applicable when thesrcproperty is not specified.
- hideServiceUsersboolean
trueto hide the service users from the suggestion;falseotherwise. This property is only applicable when thesrcproperty is not specified.
- useHomeAsValueboolean
trueto use the authorizable home as value for the automcomplete items;falseto use the authorizable IDs as value for the autocomplete items. This property is only applicable when thesrcproperty is not specified.
-
granite:FormUserPicker