TextBox

(part of package 'Bootstrap Components') Extends designtime/SolutionModel: JSWebComponent Extends runtime: RuntimeWebComponent

This is a reference page; many components have detailed usage guides here.

Properties

autocomplete

Html autocomplete property of the input field.

Type: string Default Value: "off"


dataProviderID

Type: dataprovider


editable

Type: protected Default Value: true


enabled

Type: enabled Default Value: true


format

Type: format


inputType

Type: string Default Value: "text"


placeholderText

Type: tagstring


selectOnEnter

Type: boolean


styleClass

Set the styleclasses that should be applied at to this component

Type: styleclass Default Value: "form-control"


styleClassForEye

Set the styleclasses for the eye when inputType on this component is password-with-eye, you need to add main(not manadatory), eye and eye-slash classes in this order, default value for NG is 'glyphicon glyphicon-eye-open glyphicon-eye-close' and for TiNG 'fa fa-eye fa-eye-slash'

Type: styleclass


tabSeq

Type: tabseq


toolTipText

Type: tagstring


visible

Whether the button is visible or not

Type: visible


Events

onActionMethodID(event)

Parameters:


onDataChangeMethodID(oldValue,newValue,event)

Handle changed data, return false if the value should not be accepted. JSEvent.data will contain extra information about dataproviderid, its scope and the scope id (record datasource or form/global variable scope)

Parameters:

Returns: {boolean}


onFocusGainedMethodID(event)

Parameters:


onFocusLostMethodID(event)

Parameters:


onRightClickMethodID(event)

Parameters:


API

requestFocus(mustExecuteOnFocusGainedMethod)

Request the focus to this text field.

Example:

myElement.requestFocus();

Parameters:

  • {boolean} [mustExecuteOnFocusGainedMethod] ** mustExecuteOnFocusGainedMethod (optional) if false will not execute the onFocusGained method; the default value is true


setInputType(inputType)

Reset the dataProvider to null and change the inputType of the textbox. Note: the value of the dataProvider bound to this field will be automatically set to null

Example:

myElement.inputType("tel");

Parameters:

  • {string} inputType Allowed values for inputType are text, password, email, tel, date, time, datetime-local, month, week, number, color

Returns: boolean



Last updated