panel.template.bootstrap package#

Module contents#

Bootstrap template based on the bootstrap.css library.

class panel.template.bootstrap.BootstrapTemplate(*, _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

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.bootstrap.Bootstrap'>, label='Design')

A Design applies a specific design system to a template.

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

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

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

design[source]#

alias of Bootstrap

class panel.template.bootstrap.BootstrapTemplateActions(*, 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