@aurigma/ui-framework
Version:
A platform which allows building print product personalization editors based on Aurigma's Customer's Canvas.
107 lines (72 loc) • 1.83 kB
Markdown
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']._); }}"
}
}
]
}
```
* **IOptionConfig**
* [active](ioptionconfig.md
* [config](ioptionconfig.md
* [css](ioptionconfig.md
* [onChange](ioptionconfig.md
* [option](ioptionconfig.md
* [parentWidgetName](ioptionconfig.md
* [style](ioptionconfig.md
* [visible](ioptionconfig.md
• **active**? : *boolean*
___
• **config**? : *[IMetadataConfig](imetadataconfig.md)*
___
• **css**? : *string*
___
• **onChange**? : *Function | Function[]*
A single function or an array of functions that will be executed when the option value is changed.
___
• **option**: *[IOption](ioption.md)*
___
• **parentWidgetName**? : *string*
___
• **style**? : *object*
* \[ **key**: *string*\]: string
___
• **visible**? : *boolean*