NavNode¶
A <li> node inside a <nav> tree.
-
class
yael.navnode.
NavNode
(internal_path=None, obj=None, string=None)[source]¶ Build a <li> node inside a <nav> tree or parse it from obj or string.
-
add_child
(child)[source]¶ Add the given child to this node.
Parameters: child ( yael.navnode.NavNode
) – the node child to be added
-
children
¶ The children elements.
Return type: list of yael.navnode.NavNode
-
v_epub_type
¶ The value of the epub:type attribute.
Return type: str
-
v_href
¶ The value of the href attribute.
Return type: str
-
v_id
¶ The value of the id attribute.
Return type: str
-
v_label
¶ The label of this node.
Return type: str
-