Justin Unverricht
12/13/2021, 11:27 PMLubomir Slivka
12/14/2021, 8:32 AMDashboard
component yourself, there are a bunch of props that you can leverage to customize either the top bar (with title & buttons) or the filter bar.
so.. for instance what you can do is to add FilterBar
prop.. and in it, specify your custom component to use for filtering.
the props that your custom component receive will contain DefaultFilterBar
.
so then.. your custom component can for instance add additional control on the side of the filter bar and then render the DefaultFilterBarLubomir Slivka
12/14/2021, 8:34 AMLubomir Slivka
12/14/2021, 8:36 AMPetr Dolejsi
12/14/2021, 8:37 AMLubomir Slivka
12/14/2021, 8:38 AMPetr Dolejsi
12/14/2021, 8:38 AMLubomir Slivka
12/14/2021, 8:39 AMLubomir Slivka
12/14/2021, 8:40 AMuseDashboardDispatch
Lubomir Slivka
12/14/2021, 8:40 AMLubomir Slivka
12/14/2021, 8:41 AMLubomir Slivka
12/14/2021, 8:43 AMJustin Unverricht
12/14/2021, 3:54 PMJustin Unverricht
12/14/2021, 6:23 PMJustin Unverricht
12/14/2021, 6:24 PMJustin Unverricht
12/15/2021, 12:27 AMLubomir Slivka
12/15/2021, 11:10 AMuseDashboardLoader
and mount the dashboard yourself, you have the ability to customize the props and fiddle with the FilterBar.
through this prop, you can inject custom filter bar and prepend additional dropdown (it should be possible to inject inside the filter bar as well.. it will not be nice but should be doable.. let me know if you need advice on this)
to modify insight and add/remove measure, what you can do is to use a custom insight provider. in that provider, your code gets a hold of insight, modifies it as you need, then uses the DefaultDefaultInsightWidget
to render the insight.
this way, you do not have to ‘reinvent’ the insight widget itself, just intercept the insight it renders.
i think @Jiri Zajic was playing with Dashboard in this general direction (dynamic measures/attributes) and may shed more lightJustin Unverricht
12/15/2021, 6:21 PMJiri Zajic
12/28/2021, 10:24 PMJiri Zajic
12/28/2021, 10:25 PM<Dashboard
dashboard={idRef(DASHBOARD_ID)}
FilterBarComponent={(defaultFilterBar) => {
console.log(defaultFilterBar);
const { DefaultFilterBar } = defaultFilterBar;
return <DefaultFilterBar {...defaultFilterBar} />;
}}
/>
Jiri Zajic
12/28/2021, 10:26 PMJustin Unverricht
12/28/2021, 10:27 PMJustin Unverricht
12/28/2021, 10:28 PMJiri Zajic
12/28/2021, 10:37 PMrefreshInsightWidget
and refreshKpiWidget
, but if you need the whole dashboard to refresh, maybe you could let React handle that from the outside of the Dashboard component? I might be completely off here…