lr-navigation
lr-navigation(self: none, icon: sym.rect.stroked.h, nav: sym.triangle, mode: "both", show-useless: true)(source)Create a navigation element with links to previous/next subslide/slide and a center icon. Note that physical pages are considered subslides, thus your content breaking the slide into multiple pages will be considered as 'multiple' subslides.
Usage:
#lr-navigation(
icon: sym.rect.stroked.h,
nav: sym.triangle,
mode: "both",
show-useless: false,
)
- self: The slide self. If not provided a
touying-fn-wrapper-rawis used to retrieve it instead. This means this component does not escape the animation structure likeonly, but behaves likealertinstead.
icon : symbol | content default: sym.rect.stroked.h
The icon to display for the navigation.
nav : symbol | dictionary | content default: sym.triangle
The navigation symbols. By default we use filled symbols as the links to the subslides and stroked symbols as the links to the slides. You can also pass a dictionary with the structure (filled:(left:any, right:any), stroked:(left:any, right:any)) and you may omit arbitrary fields. We try the best we can to fill the missing fields based on the values and symbols provided. \ For convenvience we allow 'subslide' as a synonym for 'filled' and 'page' and 'slide' as synonyms for 'stroked', so you can also use (subslide:(left:any, right:any), page:(left:any, right:any)) instead of the above structure.
mode : str default: "both"
The mode of the navigation item. Can be "both", "subslide" or "page".
show-useless : bool default: true
Whether to show the navigation links when they are useless (e.g. on the first page, the "previous page" link is useless). Default is true.
Returns: content