fillStyles (setter)
Sets the list of settings for the fill style of the control.
Signatures
- ParamateControls.<ControlName>.fillStyles
Example
const fillStyles = [
{
strokeStyle: '#9c1942',
fillStyle: 'transparent'
},
{
strokeStyle: '#284897',
fillStyle: 'yellow'
},
];
ParamateControls.<ControlName>.fillStyles = fillStyles;
Remark
It is possible to style each individual control in the list if the param string is passed as a list of vectors. In this case, each key in the style object must contain the list of different styling options. The length of each list must directly correspond to the N of controls in the list.
Example
// Give each of the 2 controls a unique style
const fillStyles = [
{
strokeStyle: ['#9c1942', 'white'],
fillStyle: ['transparent', 'blue']
}
];
ParamateControls.<ControlName>.fillStyles = fillStyles;