Skip to end of banner
Go to start of banner

crm:inputText

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 29 Next »

Overview

The <crm:inputText> tag is used to display an input element of type string, integer or password on the page.

Attributes

NameRequiredTypeDefaultDescription

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".

columnsfalseInteger1

Number of columns of the gird layout that will be used to display the component.


decimalPlacesfalseInteger

The number of decimal digits that is defined in CRM.COM Formatting Settings.

Number of decimal places.

Applicable only for numbers.

feedbackfalseBooleantrue

Flag enabling strength indicator for a password.

Applicable only for passwords.

idtrueStringNullUnique identifier of the component.
inputStylefalseStringtext-align: right

Inline style of the input element.

Applicable only for numbers.

isInputNumberfalseBooleanfalse

Flag indicating that this input element is a number or not.

isPasswordfalseBooleanfalse

Flag indicating that this input element is a password or not.

isRequiredfalseBoolean

true if the data object property of the component is mandatory, otherwise false.

Marks component as required.

labelKeyfalseStringnull

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

matchfalseStringnullIdentifier of another password component to match value against.
managedBeantrueStringnull

The name of the managed bean that will be used for retrieving the component values.

modefalseString The mode of the managed bean.

The mode of the component. 

Allowed values are VIEW and EDIT.

onChangeFunctionfalseString null 

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

onKeyPressActionfalseString null Defines the function call triggered when a key is pressed and released over input element.
parametersfalseObject null Defines the parameter of the function call.
placeholderfalse Stringempty string 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.
readonlyfalseBoolean falseFlag indicating that this component will prevent changes by the user.
refreshfalseString@formComponent(s) to update with ajax.
sizefalseIntegernullNumber of characters used to determine the width of the input element.
styleClassfalseStringnullStyle class of the component.
symbolfalseStringThe prefix of the default currency that is defined in CRM.COM General Settings.

Desired symbol or unit.

Applicable only for numbers.

symbolPositionfalseStringp

Position of the symbol. Allowed values are p(prefix) and s(suffix).

Applicable only for numbers.

symbolTypefalseStringcurrency

The type that will be used on converting number values. Allowed values are number, currency , or percent.

Applicable only for numbers.

tipfalseStringnull

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

validatorMessagefalseStringnull

The message to display when validation fails.

Applicable only for passwords.

valuetrueObjectnullThe value of the component.
visiblefalseBooleannull

Controls the visibility of the component.


Getting Started

The following example shows an input text component.


  • No labels