ShowInDash#

class tollan.plot.plotly.ShowInDash(data_items: list[dict[str, ~typing.Any]], title_text: str | None = None, container_props: dict[str, ~typing.Any] = <factory>)[source]#

Bases: object

Dash layout component for displaying data items in tabs.

This class creates a Dash Mantine Components (DMC) layout with a header and tabbed interface for displaying multiple data items (figures or other data).

Attributes Summary

Methods Summary

layout()

Create the data viewer layout with DMC components.

Attributes Documentation

container_props: dict[str, Any] = <dataclasses._MISSING_TYPE object>#
data_items: list[dict[str, Any]] = <dataclasses._MISSING_TYPE object>#
title_text: str | None = None#

Methods Documentation

layout() Container[source]#

Create the data viewer layout with DMC components.

Returns:

Dash Mantine Components container with header and tabbed content.

Return type:

dmc.Container

Notes

Creates a layout with: - Header section with title (dmc.Paper with dmc.Title) - Tabbed body section (dmc.Tabs) with one tab per data item - Each tab displays either a Plotly figure or formatted YAML