Skip to end of banner
Go to start of banner

crm:autocomplete

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 43 Current »

Overview

The <crm:autocomplete> tag is used to display an input element on the page that provides the user prompt suggestions while the input is being typed into the input box.

Attributes

NameRequiredTypeDefaultDescription
classNametrueStringnullThe class name of the value of the component.

columnClasses

falseStringui-grid-col-12

Comma separated list of column style classes of the gird layout that will be used to display the component.

Column style class should be prefixed with ui-grid-col- and suffixed with the number of columns that content will take (out of 12).

For example, for two columns with the same size the columnClasses should be "ui-grid-col-6,ui-grid-col-6".

completeMethodtrueBooleanfalseDefines the function call triggered to provide suggestions.
columnsfalseInteger1Number of columns of the gird layout that will be used to display the component.
displayValuefalseStringnull

The displayed value of the component in view mode.

At least one of the attributes displayValue or itemLabel must be specified.

dropdownfalseBooleanfalseEnables dropdown mode when set true.
forceSelectionfalseBooleantrueWhen enabled, autoComplete only accepts input from the selection list.
idtrueStringnullUnique identifier of the component.
isRequiredfalseBooelantrue if the data object property of the component is mandatory, otherwise false.Marks component as required.
itemLabelfalseStringnull

Label of the item.

At least one of the attributes displayValue or itemLabel must be specified.

labelKeyfalseStringnull

A valid key defined in translation properties file. Its translation through the glossary will be used as the presentable name of the component.

managedBeantrueStringnullThe name of the Java managed bean class that will be used for retrieving the component values.
maxResultsfalseInteger20Maximum number of results to be displayed.
minQueryLengthfalseInteger1Number of characters to be typed before starting to query.
modefalseStringThe mode of the managed bean.

The mode of the component.

Allowed values are VIEW and EDIT.

multiplefalseBooleanfalse

Flag indicating that multiple selection is enabled or not.


onChangeFunctionfalseStringnull

Defines the function call triggered when input element loses focus and its value has been modified since gaining focus.

onChangeFunctionParametersfalseStringnullDefines the parameter that will be used from the onChangeFunction function call.
parametersfalseStringnull

Defines the parameter that will be used from the completeMethod function call.

placeholderfalseStringkey_type_to_search

A valid key defined in translation properties file. Its translation through the glossary will be used as a short hint that describes the expected value of this input element.

processfalseString@this and the value of the refresh attributeComponent(s) to process in partial request.
readonlyfalseBooleanfalseFlag indicating that this component will prevent changes by the user.
refreshfalseString@thisComponent(s) to update with ajax.
tipfalseStringnull

A valid key defined in translation properties file. Its translation through the glossary will be used as an advisory tooltip information.

valuetrueObjectnullThe value of the component.
visiblefalseBooleantrueControls the visibility of the component.


Getting Started

The following example shows an autocomplete component.


  • No labels