flexmeasures.ui.utils.breadcrumb_utils

Functions

flexmeasures.ui.utils.breadcrumb_utils.get_ancestry(entity: Sensor | Asset | Account | None) list[dict]

Return a list of ancestors meta data, with URLs for their pages, their name and type. This function calls itself recursively to go up the ancestral tree, up to the account. This function also allows customization for assets and sensors (for this, set “breadcrumb_ancestry” attribute).

flexmeasures.ui.utils.breadcrumb_utils.get_breadcrumb_info(entity: Sensor | Asset | Account | None, current_page: str = None) dict
flexmeasures.ui.utils.breadcrumb_utils.get_siblings(entity: Sensor | Asset | Account | None) list[dict]

Return a list of siblings meta data, with URLs for their pages, name and type. This function also allows customization (for this, set “breadcrumb_siblings” attribute).