You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b76c513
Browse filesBrowse the repository at this point in the historyBrowse files
## Controlling embedded multi-row views via URL state
557
557
558
-
A React view can embed and control other Saltcorn views (Feed, List, etc.) by reading and writing URL state. When URL state changes via pjax, Saltcorn re-renders the affected views and passes the updated `state` prop to your React component.
558
+
A React view can embed and control other Saltcorn views that display multiple rows by reading and writing URL state. When URL state changes via pjax, Saltcorn re-renders the affected views and passes the updated `state` prop to your React component.
559
559
560
-
Embedded views (Feed, List, …) use URL params prefixed with a short hash unique to each view instance:
560
+
> **Note:** Currently only **List** and **Feed** view templates are supported — they expose the pagination metadata that `useManyView` depends on.
561
+
562
+
Embedded views use URL params prefixed with a short hash unique to each view instance:
561
563
562
564
| Param | Effect |
563
565
|---|---|
@@ -570,15 +572,15 @@ Use `set_state_field(key, value)` to update a single param, or `set_state_fields
570
572
571
573
**Full example**
572
574
573
-
A tableless React controller view that embeds `"persons_feed"` and controls its pagination and sorting. It extracts the server-computed hash from the feed on first load, then keeps the feed in sync with URL state on every pjax navigation.
575
+
A tableless React controller view that embeds `"persons_feed"`(a **Feed** view — a **List** view works identically) and controls its pagination and sorting. It extracts the server-computed hash from the embedded view on first load, then keeps it in sync with URL state on every pjax navigation.
0 commit comments