What is the * type in Widgets reference page?

#1

In the Widgets reference page, some proprerties are of type *. What does it mean? Is it some inheritance from Node or CSS?

#2

It’s a wildcard, these properties can be of pretty much any type. There are 3 cases:

  • on/off/back/forth: defines what the widget sends, the type is up to you
  • default/value: depends on the widgets, must match the widget’s value type (eg number for sliders, etc)
  • variables: arbitrary, although defaults to an object
1 Like