Contents Menu Expand Light mode Dark mode Auto light/dark mode
iommi 5.0.0 documentation
Logo
iommi 5.0.0 documentation
  • Getting started
  • Production use
  • Equivalence
  • Cookbook
    • General
    • Parts & Pages
    • Forms
    • Tables
    • Queries
  • Forms
  • Pages
  • Tables
  • Queries
  • Path decoding
  • extra and extra_evaluated
  • Dev tools
  • Admin
  • Style
  • Registrations
  • API Reference
    • Action
    • Asset
    • Attrs
    • Cell
    • Column
    • ColumnHeader
    • Container
    • EditColumn
    • EditTable
    • Endpoint
    • Field
    • Filter
    • Form
    • Fragment
    • Header
    • HeaderConfig
    • Members
    • Menu
    • MenuItem
    • Page
    • Part
    • Query
    • Style
    • Table
    • Traversable
  • Philosophy
  • Architecture
  • Add iommi to a FBV
  • Changelog
  • Credits
  • Contributing
  • @github
  • @discord
  • @pypi
  v: latest
Versions
latest
stable
Downloads
On Read the Docs
Project Home
Builds
Back to top
Edit this page

Menu#

Base class: MenuBase

Class that describes menus.

Example:

menu = Menu(
    sub_menu=dict(
        root=MenuItem(url='/'),

        albums=MenuItem(url='/albums/'),

        # url defaults to /<name>/ so we
        # don't need to write /musicians/ here
        musicians=MenuItem(),
    ),
)

Refinable members#

  • after

    Type: Union[int, str]

  • assets

    Type: Namespace

  • attrs

    Type: Attrs

  • endpoints

    Type: Namespace

  • extra

    Type: Dict[str, Any]

  • extra_evaluated

    Type: Dict[str, Any]

  • include

    Type: bool

  • iommi_style

    Type: str

  • items_container

  • sort

    Type: bool

    Default: False

  • sub_menu

    Type: Dict

  • tag

    Type: str

  • template

    Type: Union[str, iommi._web_compat.Template]

Next
MenuItem
Previous
Members
Copyright © 2022, Anders Hovmöller & Johan Lübcke
Made with Sphinx and @pradyunsg's Furo
Contents
  • Menu
    • Refinable members