panel.template.material package#

Module contents#

Material template based on the material web components library.

class panel.template.material.MaterialTemplate(*, _actions, base_target, base_url, busy_indicator, collapsed_sidebar, favicon, header, header_background, header_color, logo, main, main_max_width, manifest, meta_author, meta_description, meta_keywords, meta_refresh, meta_viewport, modal, notifications, sidebar, sidebar_width, site, site_url, title, config, design, location, theme, name)[source]#

Bases: BasicTemplate

MaterialTemplate is built on top of Material web components.

Parameter Definitions


Parameters inherited from:

panel.template.base.BaseTemplate: config, theme

panel.template.base.BasicTemplate: location, busy_indicator, collapsed_sidebar, header, main, main_max_width, sidebar, modal, notifications, logo, favicon, title, site, site_url, manifest, meta_description, meta_keywords, meta_author, meta_refresh, meta_viewport, base_url, base_target, header_background, header_color

design = ClassSelector(class_=<class 'panel.theme.base.Design'>, default=<class 'panel.theme.material.Material'>, label='Design')

A Design applies a specific design system to a template.

sidebar_width = Integer(default=370, inclusive_bounds=(True, True), label='Sidebar width')

The width of the sidebar in pixels. Default is 370.

_actions = ClassSelector(class_=<class 'panel.template.base.TemplateActions'>, default=MaterialTemplateActions(), label=' actions')

design[source]#

alias of Material

class panel.template.material.MaterialTemplateActions(*, close_modal, open_modal, loading, align, aspect_ratio, css_classes, design, height, height_policy, margin, max_height, max_width, min_height, min_width, sizing_mode, styles, stylesheets, tags, visible, width, width_policy, name)[source]#

Bases: TemplateActions

Parameter Definitions


Parameters inherited from:

panel.viewable.Layoutable: align, aspect_ratio, css_classes, design, height, min_width, min_height, max_width, max_height, margin, styles, stylesheets, tags, width, width_policy, height_policy, sizing_mode, visible

panel.viewable.Viewable: loading

panel.template.base.TemplateActions: open_modal, close_modal