Input Group

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

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

Properties

addOnButtons

Type: AddOnButton[]


addOns

Type: AddOn[]


dataProvider

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


readOnly

Type: protected Default Value: false


styleClass

Type: styleclass


tabSeq

Type: tabseq


toolTipText

Type: tagstring


visible

Type: visible


Events

onAction

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) - present since 2021.06 release

Parameters:

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

Returns: boolean


onFocusGainedMethodID

Parameters:

event JSEvent


onFocusLostMethodID

Parameters:

event JSEvent


onRightClick

Parameters:

event JSEvent


API

addAddOn

Adds an addOn to this input group

AddOn has the following properties:

text - the text of the item position - LEFT or RIGHT (defaults to LEFT)

@param {bootstrapextracomponents-input-group.AddOn} addOnToAdd - object with text, position (LEFT, RIGHT)

Parameters:

addOn AddOn


addAddOnButton

Adds an addOnButton to this input group

AddOnButton has the following properties:

text - the button text position - LEFT or RIGHT (defaults to RIGHT) onAction - function to be called on button click onDoubleClick - function to be called on button double click onRightClick - function to be called on button right click styleClass - the style class of the button (e.g. btn-danger) imageStyleClass - image style class of the button

@param {bootstrapextracomponents-input-group.AddOnButton} addButtonOnToAdd

Parameters:

addOnButton AddOnButton


clearAddOnButtons

Removes all addOnButtons from this input group


clearAddOns

Removes all addOns from this input group


requestFocus

Request the focus to this text field.

@example

 myElement.requestFocus();

setAddOnButtons

Sets all addOnButtons of this input group

AddOnButton has the following properties:

text - the button text position - LEFT or RIGHT (defaults to RIGHT) onAction - function to be called on button click onDoubleClick - function to be called on button double click onRightClick - function to be called on button right click styleClass - the style class of the button (e.g. btn-danger) imageStyleClass - image style class of the button

@param {Array<bootstrapextracomponents-input-group.AddOnButton>} addOnButtons

Parameters:

addOnButtons AddOnButton[]


setAddOns

Sets all addOns of this input group

AddOn has the following properties:

text - the text of the item position - LEFT or RIGHT (defaults to LEFT)

@param {Array<bootstrapextracomponents-input-group.AddOn>} addOns - Array of objects with text, position (LEFT, RIGHT)

Parameters:

addOns AddOn[]


Types

AddOn

AddOnButton

Last updated