Switch

(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

animate

Type: Boolean Default Value: true


componentSize

Type: String Default Value: "Normal"


dataProviderID

Type: Dataprovider


enabled

Type: Enabled Default Value: true


handleWidth

Type: String Default Value: "150"


label

Type: String Default Value: "Switch"


labelWidth

Type: String Default Value: "150"


offColor

Type: String Default Value: "primary"


offText

Type: String Default Value: "Off"


onColor

Type: String Default Value: "primary"


onText

Type: String Default Value: "On"


styleClass

Type: Styleclass Default Value: "switch"


tabSeq

Type: Tabseq


visible

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

Parameters:

Returns: {Boolean}


API

requestFocus()

Request the focus to this switch.

Example:

myElement.requestFocus();


Last updated

Was this helpful?