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/reference.md
+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
@@ -13,7 +13,7 @@ This page documents the runtime behaviors that aren't captured in the API docs.
13
13
14
14
| Argument | Required | Description |
15
15
|---|---|---|
16
-
|`nav`| yes | A dotted import path string (e.g. `"config.nav.MainNav"`)or a `Nav` instance from the template context. |
16
+
|`nav`| yes | A dotted import path string to a `Nav` class (e.g. `"config.nav.MainNav"`), a dotted path to a callable that accepts `request` and returns a `Nav` (e.g. `"config.nav.main_nav"`), or a `Nav` instance from the template context. See [Programmatic Navigation](usage.md#programmatic-navigation). |
17
17
|`template_name`| no | Override the template used to render the navigation. |
For conditions that depend on the request (user authentication, permissions, session data), define a callable that accepts the request and returns a `Nav`:
0 commit comments