Function: useDashboard()
ts
function useDashboard<T>(options): ShallowRef<
| Dashboard<FieldOf<T>>
| null>;Defined in: packages/vue/src/index.ts:46
Create a dashboard and destroy it when the calling component unmounts (or its effect scope stops). The ref holds null until the engine has loaded the data, and always during server rendering.
Pass a ref or getter to make the options reactive: the dashboard is rebuilt when data or engine changes. Other options are read once per build.
Type Parameters
| Type Parameter |
|---|
T extends Row |
Parameters
| Parameter | Type |
|---|---|
options | MaybeRefOrGetter<DashboardOptions<T>> |