File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,15 @@ The ``MenuItem`` class should be instantiated and passed to the ``add_item``
23
23
class method with the appropriate parameters. ``MenuItem `` accepts a wide
24
24
number of options to its constructor method, the majority of which are simply
25
25
attributes that become available in your templates when you're rendering out
26
- the menus. The required arguments to MenuItem are the first two; the title of
27
- the menu and the URL, and the keywords that affect menu generation are:
26
+ the menus.
27
+
28
+ ``MenuItem `` requires the first two arguments:
29
+
30
+ * The ``title `` of the item
31
+ * The ``url `` of the item, which can be a string or a callable which accepts the request
32
+ object and returns a string.
33
+
34
+ The keywords that affect menu generation are:
28
35
29
36
* The ``weight `` keyword argument affects sorting of the menu.
30
37
* The ``children `` keyword argument is either a list of ``MenuItem `` objects,
You can’t perform that action at this time.
0 commit comments