Skip to content

Tracker watch

Watch parent tracker for changes, if the parent tracker changed, redraw children. This is used if we need to redraw children (e.g. text widget that need to be re-evaluated).

Name Description
component tracker-watch
child childen widget that need to be drawn

Example

{
    "component": "tracker",
    "options": {
        "tracker": "some-tracker"
    },
    "child": {
        "component": "grid",
        "children": [
            {
                "component": "tracker-metric",
                "options": {
                    "tracker": "some-tracker",
                    "metric": "someMetric"
                },
            },
            {
                "component": "tracker-watch",
                "child": {
                    "component": "text",
                    "text": "calculated: {values.someMetric * 10 | numeral}"
                }
            }
        ]
    }
}