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
Copy file name to clipboardExpand all lines: homedocs/src/pages/docs/concepts/data-views.mdx
+15-15Lines changed: 15 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,36 +10,36 @@ import OnThisPage from "../../../components/OnThisPage.astro";
10
10
11
11
<OnThisPage />
12
12
13
-
All application data in CxJS is stored inside a central [Store](/docs/core/store). While convenient for global state, accessing deeply nested paths or working with collections can become cumbersome. Data View components wrap parts of the widget tree and provide a modified view of the Store data, making it easier to work with specific areas of the data model.
13
+
All application data in CxJS is stored inside a central [Store](/docs/intro/store). While convenient for global state, accessing deeply nested paths or working with collections can become cumbersome. Data View components wrap parts of the widget tree and provide a modified view of the Store data, making it easier to work with specific areas of the data model.
|[Repeater](./repeater)| Renders children for each record in a collection | Lists, tables, any repeated content |
20
+
|[Rescope](./rescope)| Selects a common prefix for shorter binding paths | Deeply nested data structures |
21
+
|[Sandbox](./sandbox)| Multiplexes data based on a dynamic key | Tabs, routes with isolated page data |
22
+
|[PrivateStore](./private-store)| Creates an isolated store for a subtree | Reusable components with local state |
23
+
|[DataProxy](./data-proxy)| Creates aliases with custom getter/setter logic | Computed values, data transformations |
24
+
|[Route](./route)| Renders children when URL matches a pattern | Page routing, exposes `$route` params |
25
25
26
26
## How Data Views Work
27
27
28
28
Each Data View component exposes the same interface as the Store to its children, but can introduce additional properties. For example, Repeater adds `$record` and `$index` for each item in the collection, Route exposes `$route` with matched URL parameters, while Sandbox might expose `$page` for route-specific data. These additional properties are only accessible within the scope of that Data View, allowing child widgets to bind to them just like any other Store data.
29
29
30
30
## How to Choose
31
31
32
-
Use [Repeater](/docs/data/repeater) when you need to render a list of items from an array.
32
+
Use [Repeater](./repeater) when you need to render a list of items from an array.
33
33
34
-
Use [Rescope](/docs/data/rescope) when working with deeply nested data and you want shorter binding paths.
34
+
Use [Rescope](./rescope) when working with deeply nested data and you want shorter binding paths.
35
35
36
-
Use [Sandbox](/docs/data/sandbox) when you need to switch between different data contexts based on a key (e.g., tabs, route parameters).
36
+
Use [Sandbox](./sandbox) when you need to switch between different data contexts based on a key (e.g., tabs, route parameters).
37
37
38
-
Use [PrivateStore](/docs/data/private-store) (also known as Restate) when you need completely isolated state that doesn't affect the global store.
38
+
Use [PrivateStore](./private-store) (also known as Restate) when you need completely isolated state that doesn't affect the global store.
39
39
40
-
Use [DataProxy](/docs/data/data-proxy) when you need to transform data or create computed aliases with custom getter/setter logic.
40
+
Use [DataProxy](./data-proxy) when you need to transform data or create computed aliases with custom getter/setter logic.
41
41
42
-
Use [Route](/docs/core/route) when you need to conditionally render content based on URL and access matched route parameters.
42
+
Use [Route](./route) when you need to conditionally render content based on URL and access matched route parameters.
Copy file name to clipboardExpand all lines: homedocs/src/pages/docs/concepts/simple-selection.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ SimpleSelection is the most basic selection model. It stores the entire selected
24
24
- When you need immediate access to the full selected object
25
25
- Quick prototyping or simple lists
26
26
27
-
Note that selection is lost if the selected object changes in the data source, since the reference will no longer match. For more robust selection, consider [KeySelection](/core/key-selection).
27
+
Note that selection is lost if the selected object changes in the data source, since the reference will no longer match. For more robust selection, consider [KeySelection](./key-selection).
0 commit comments