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: docs/src/features/components.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ Convert any Django view into a IDOM component by usng this decorator. Compatible
39
39
40
40
| Type | Description |
41
41
| --- | --- |
42
-
| `_ViewComponentConstructor` | A function that takes `request: HttpRequest | None, *args: Any, **kwargs: Any` and returns an IDOM component. |
42
+
| `_ViewComponentConstructor` | A function that takes `request: HttpRequest | None, *args: Any, key: Key | None, **kwargs: Any` and returns an IDOM component. |
43
43
44
44
??? warning "Existing limitations"
45
45
@@ -261,6 +261,7 @@ Allows you to defer loading a CSS stylesheet until a component begins rendering.
261
261
| Name | Type | Description | Default |
262
262
| --- | --- | --- | --- |
263
263
| static_path | `str` | The path to the static file. This path is identical to what you would use on a `static` template tag. | N/A |
264
+
| key | `Key | None` | A key to uniquely identify this component which is unique amongst a component's immediate siblings | `None` |
264
265
265
266
<font size="4">**Returns**</font>
266
267
@@ -338,6 +339,7 @@ Allows you to defer loading JavaScript until a component begins rendering. This
338
339
| Name | Type | Description | Default |
339
340
| --- | --- | --- | --- |
340
341
| static_path | `str` | The path to the static file. This path is identical to what you would use on a `static` template tag. | N/A |
342
+
| key | `Key | None` | A key to uniquely identify this component which is unique amongst a component's immediate siblings | `None` |
0 commit comments