Back to Website
Show / Hide Table of Contents

Interface IOptionConfig

PIM selector list config example.

{
  "widgets": [
    {
      "name": "pim-option",
      "type": "pim-option",
      "params": {
        "option": {
            "type": "radio",
            "name": "Option1",
            "id": 1,
            "values": [
                {
                    "name": "dog",
                    "id": 0
                },
                {
                    "name": "cat",
                    "id": 1
                }
            ],
            "selected": 1,
            "tooltip": "its a tooltip",
            "description": "its a desc"
        },
        "onChange": "{{ #function console.warn($['pim-option']._); }}"
      }
    }
  ]
}
Package: ui-framework

Properties

active

Declaration
active?: boolean
Property Value
Type Description
boolean

config

Declaration
config?: IMetadataConfig
Property Value
Type Description
IMetadataConfig

css

Declaration
css?: string
Property Value
Type Description
string

onChange

A single function or an array of functions that will be executed when the option value is changed.

Declaration
onChange?: Function | Function[]
Property Value
Type Description
Function | Function[]

A single function or an array of functions that will be executed when the option value is changed.

option

Declaration
option: IOption
Property Value
Type Description
IOption

parentWidgetName

Declaration
parentWidgetName?: string
Property Value
Type Description
string

style

Declaration
style?: [key: string]: string
Property Value
Type Description
[key: string]: string

visible

Declaration
visible?: boolean
Property Value
Type Description
boolean
Was this page helpful?
Thanks for your feedback!
Back to top Copyright © 2001–2024 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback