Skip to main content

CnSavedViewWidgetForm

Config sub-form for the saved-view (CnSavedViewWidget) widget. Lists the reader's own and public views and stores a view id plus a row limit.

Props​

PropTypeDefaultDescription
editingWidgetobject|nullnullThe placement being edited, or null in create mode.
valueobject{}Initial content values when not editing.
apiobject|nullnullInjected views API ({ fetchViews }) for tests; defaults to useSavedViewsApi.

Events​

EventPayloadDescription
update:contentobjectEmitted with { viewId, limit } on every change.

Notes​

  • A reader with no views sees an empty state, not a blank select.
  • validate() requires a chosen view.