useIsWidgetRestricted()
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production.
Tells whether the widget renders something the current user is not allowed to see. A widget whose insight is merely deleted is not restricted — that one keeps rendering the missing-visualization tile.
export declare function useIsWidgetRestricted(widget: ExtendedDashboardWidget): boolean;
Parameters
Parameter | Type | Description |
|---|---|---|
widget |
Returns
boolean