componentSetting (switch)
Applies when
type = switch| Property | Type | Required | Default Value | Details |
|---|---|---|---|---|
type | enum | Yes | data type=string; lov=STATICValid values: item region dynamicAction genAITool process authenticationScheme authorizationScheme restDataSource | |
name | enum | Yes | data type=string; lov=PLUGINSValid values: switch |
settings
| Property | Type | Required | Default Value | Details |
|---|---|---|---|---|
onValue | string | No | Y | data type=string; maxLen=255 |
onLabel | string | No | data type=string; maxLen=4000 | |
offValue | string | Yes | N | data type=string; maxLen=255 |
offLabel | string | No | data type=string; maxLen=4000 | |
displayStyle | enum | Yes | switch | data type=string; maxLen=4000; lov=STATICValid values: switch selectList pillButton |
settings {
onValue: value
onLabel: value
offValue: value
offLabel: value
displayStyle: switch
}subscription
| Property | Type | Required | Default Value | Details |
|---|---|---|---|---|
master | enum | No | data type=reference; lov=COMPONENT; references=appValid values: @/8842.242/ @/8842.242/UTDEV18800 @/8842.261/ @/8842.261/UT261 @/8842.262/ @/8842.262/UT262 @/8842.9999/ @/8842.9999/DATA-REPORTER-THEME |
subscription {
master: "@/8842.242/"
}APEXlang Example
componentSetting sample (
type: item
name: switch
settings {
onValue: value
onLabel: value
offValue: value
offLabel: value
displayStyle: switch
}
subscription {
master: "@/8842.242/"
}
)