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-3
Original file line number
Diff line number
Diff line change
@@ -27,10 +27,10 @@ Convert any Django view into a IDOM component by usng this decorator. Compatible
27
27
| Name | Type | Description | Default |
28
28
| --- | --- | --- | --- |
29
29
| view | `Callable | View` | The view function or class to convert. | N/A |
30
-
| compatibility | `bool` | If True, the component will be rendered in an iframe. Strict parsing does not apply to compatibility mode. | `False` |
30
+
| compatibility | `bool` | If True, the component will be rendered in an iframe. When using compatibility mode `tranforms`, `strict_parsing`, and `request` arguments will be ignored. | `False` |
31
31
| transforms | `Iterable[Callable[[VdomDict], Any]]` | A list of functions that transforms the newly generated VDOM. The functions will be called on each VDOM node. | `tuple` |
32
32
| strict_parsing | `bool` | If True, an exception will be generated if the HTML does not perfectly adhere to HTML5. | `True` |
33
-
| request | `HttpRequest | None` | Request object to provide to the view. Custom request objects cannot be used in compatibility mode. | `None` |
33
+
| request | `HttpRequest | None` | Request object to provide to the view. | `None` |
34
34
| args | `Iterable` | The positional arguments to pass to the view. | `tuple` |
35
35
| kwargs | `Dict | None` | The keyword arguments to pass to the view. | `None` |
36
36
@@ -93,7 +93,7 @@ Convert any Django view into a IDOM component by usng this decorator. Compatible
93
93
94
94
For views that rely on HTTP responses other than `GET` (such as `PUT`, `POST`, `PATCH`, etc), you should consider using compatibility mode to render your view within an iframe.
95
95
96
-
Any view can be rendered within compatibility mode. However, the `strict_parsing` argument does not apply to compatibility mode.
96
+
Any view can be rendered within compatibility mode. However, the `transforms`, `strict_parsing`, and `request` arguments do not apply to compatibility mode.
97
97
98
98
Please note that by default the iframe is unstyled, and thus won't look pretty until you add some CSS.
0 commit comments