Skip to content

Commit 25702f0

Browse files
committed
Improved pi-slot documentation
1 parent e9c57eb commit 25702f0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

api/components/pi-slot.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@
66
| ---------------------- | ----- | ---------------------------------------------------------------- |
77
| `name` | | Name of the components to look for |
88
| `data` | | The data to forward to the components ("props") |
9+
| `rel` | (1) | The behavior of the slot |
910
| `item-template-id` | | The ID of a template to wrap each found component |
1011
| `fallback-template-id` | | The ID of a template to display as fallback |
11-
| `order-by` | (1) | Defines the ordering of the found components |
12+
| `order-by` | (2) | Defines the ordering of the found components |
1213
| `reverse-order` | | If set, reverses the order in which the components are displayed |
1314

14-
The ordering key must be one of `cid` (order by their component ID), `source` (order by their micro frontend name), `time` (order by the time the component was registered), and `none` (just take the order in which the components have been found.)
15+
(1) The slot behavior defines the slot's relationship to a Picard.js-internal service that is responsible for actually matching the `name` and the `data` props. Initially, a single behavior named `router` is available. This behavior matches the provided name as a `page:`-component using dynamic route matching.
16+
17+
(2) The ordering key must be one of `cid` (order by their component ID), `source` (order by their micro frontend name), `time` (order by the time the component was registered), and `none` (just take the order in which the components have been found.)
1518

1619
## Properties
1720

0 commit comments

Comments
 (0)