lineStyles (setter)

Sets the list of settings for the font style of the control.

Signatures

  •    ParamateControls.<ControlName>.lineStyles

Example

 const lineStyles = [
   {
     strokeStyle: 'black',
     lineWidth: 2,
     lineDash: []
   },
   {
     strokeStyle: 'black',
     lineWidth: 1,
     lineDash: [10, 10]
   },
  ];
  ParamateControls.<ControlName>.lineStyles = lineStyles;
 

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 lineStyles = [
   {
     strokeStyle: ['#9c1942', 'white'],
     lineWidth: [1, 1],
    lineDash: [[10, 10], [5, 5]]
   }
  ];
  ParamateControls.<ControlName>.lineStyles = lineStyles;