Ga naar hoofdinhoud

CnSavedViewWidget

A dashboard widget driven by a saved view. Registered under the saved-view type and configured by CnSavedViewWidgetForm. Rows are drawn by CnObjectListWidget.

Content shape​

{ "viewId": "42", "limit": 10 }

Props​

PropTypeDefaultDescription
contentobject{}The widget config: viewId and limit (default 10).
apiobject|nullnullInjected views API ({ fetchViews }) for tests; defaults to useSavedViewsApi.

Notes​

  • Nothing of the view is copied into the layout: the view is read on every load.
  • A view that is missing, or answers 403 or 404, renders a named refusal. An empty result renders the normal empty state.
  • Marked userAddable, so listUserAddableWidgetTypes() offers it.