useConfigureWidget
@wuespace/telestion / widget / useConfigureWidget
useConfigureWidget(): readonly [
Record
<string
,Json
>, (s
) =>void
]
Similar to useState
but for widget configurations.
Only works inside a widget configuration context. Values returned and passed into the setter are always validated and transformed by the widget’s Widget.createConfig function.
Returns¶
readonly [Record
<string
, Json
>, (s
) => void
]
the current widget configuration and a function to update it