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

Parameters:

event JSEvent


onDataChangeMethodID

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:

oldValue ${dataproviderType} newValue ${dataproviderType} event JSEvent

Returns: boolean


onFocusGainedMethodID

Parameters:

event JSEvent


onFocusLostMethodID

Parameters:

event JSEvent


onRightClickMethodID

Parameters:

event JSEvent


API

requestFocus

Request the focus to this text field.

@example

myElement.requestFocus();

@param mustExecuteOnFocusGainedMethod (optional) if false will not execute the onFocusGained method; the default value is true

Parameters:

mustExecuteOnFocusGainedMethod boolean (optional)


setInputType

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

@param {String} inputType allowed values for inputType are text, password, email, tel, date, time, datetime-local, month, week, number, color @example

myElement.inputType("tel");

Parameters:

inputType string

Returns: boolean



Last updated