qualpipe_webapp.frontend.page_config.PageConfig#

class qualpipe_webapp.frontend.page_config.PageConfig(*, name, label, plots=<factory>, layout=<factory>, css=<factory>, js=<factory>, template='pages/array_element_type/generic_page.html')[source]#

Bases: BaseModel

Configuration for a single page.

Parameters:
css: list[str]#
js: list[str]#
label: str#
layout: LayoutConfig#
model_config = {}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: str#
plot_keys()[source]#

Return generated internal plot keys in the order defined by the page config.

Return type:

list[str]

plot_metrics()[source]#

Return plot metric names in the order defined by the page config.

Return type:

list[str]

plot_titles()[source]#

Return plot titles in the order defined by the page config.

Return type:

list[str]

plots: list[dict[str, Any]]#
template: str#