dlt._workspace.helpers.dashboard.ui_elements
build_error_callout
def build_error_callout(message: str,
code: str = None,
traceback_string: str = None) -> Any
Build a callout with a message and a exposable stacktrace.
Arguments:
messagestr - The message to display in the callout.codestr - The code to display in the callout.traceback_stringstr - The traceback to display in the callout.
Returns:
mo.ui.Callout- The callout with the message and the stacktrace.
build_title_and_subtitle
def build_title_and_subtitle(title: str,
subtitle: str = None,
title_level: int = 2) -> Any
Build a title and a subtitle block
build_page_header
def build_page_header(dlt_pipeline: dlt.Pipeline,
title: str,
subtitle: str,
subtitle_long: str,
button: Any = None) -> Any
Build a page header with a title, a subtitle, button and conditional longer subtitle
section_marker
def section_marker(section_name: str, has_content: bool = False) -> mo.Html
Create an invisible marker element to identify sections for CSS styling.
Arguments:
section_name- Name identifier for the section (e.g., "home_section", "schema_section")has_content- If True, adds 'has-content' class to enable CSS styling (borders, backgrounds). Should be True only when the section has actual content and is displayed.
Returns:
Hidden HTML div element with section marker classes for CSS targeting.