Field Hooks
15 items
useItemPosition
Returns the position of the widget on the dashboard.
useSetItemPosition
Returns setter functions to change the position of the widget on the dashboard.
useItemSize
Returns the size of the widget on the dashboard. Useful for widgets that draw with absolute sizes, like SVG charts.
useSetItemSize
Returns setter functions to change the size of the widget on the dashboard.
useTimezone
Returns the timezone selected in MoBro.
useSystemTime
Returns the current time of the PC running MoBro, and optionally keeps it updated. Useful for clocks, since the device
useSettings
Returns the settings selected in MoBro.
useLanguage
Returns the language selected in MoBro.
useConvertDateToTimezone
Returns a function that converts a date to the timezone selected in MoBro.
useFormattedMetricValue
Formats the value of a ChannelValue for display, based on the value type of the
useWidgetConfig
Returns the configuration of the widget, as defined in its
useMetricFieldValueType
Determines the kind of a metric value by inspecting the value itself.
useRipple
Returns a function that shows a ripple effect on the dashboard, the same effect shown when clicking a widget with an