AutocompleteΒΆ

/libs/granite/ui/components/coral/foundation/authorizable/autocomplete

An autocomplete field that is designed to allow the user to pick the authorizable from suggested list.

It extends Field component.

It has the following content structure:

granite:AuthorizableAutocomplete
  1. granite:FormField
namestring

The name that identifies the field when submitting the form.

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.

validationstring
multiple

The name of the validator to be applied. E.g. foundation.jcr.name. See validation in Granite UI.

multipleboolean

Indicates if the user is able to select multiple selections.

forceSelectionboolean

Indicates if the user must only select from the list of given options. If it is not forced, the user can enter arbitrary value.

deleteHintboolean
  1. true

true to generate the SlingPostServlet @Delete hidden input based on the field name.

valueTypestring
  1. id
  1. id
  2. path
  3. principalname

The type of value to be submitted:

id
Use authorizable ID
path
Use authorizable home path
principalname
Use principal name
selectorstring
  1. all
  1. all
  2. user
  3. group

The selector of authorizable:

all
Show all authorizables
user
Show only users
group
Show only groups
serviceUserFilterstring
  1. exclude
  1. off
  2. includeonly
  3. exclude

Filter for service user:

off
Turn off the filter to show all users
includeonly
Include only the service users
exclude
Exclude the service users
impersonableUserFilterstring
  1. off
  1. off
  2. includeonly
  3. exclude

Filter for impersonable user:

off
Turn off the filter to show all users
includeonly
Include only the users that can be impersonated by the current user
exclude
Exclude the users that can be impersonated by the current user