panel.pane.alert module#
Bootstrap inspired Alerts
See https://getbootstrap.com/docs/4.0/components/alerts/
- class panel.pane.alert.Alert(object=None, **params)[source]#
Bases:
Markdown
The Alert pane allows providing contextual feedback messages for typical user actions. The Alert supports markdown strings.
Reference: https://panel.holoviz.org/reference/panes/Alert.html
- Example:
>>> Alert('Some important message', alert_type='warning')
Methods
applies
(obj)Returns boolean or float indicating whether the Pane can render the object.
Parameter Definitions
Parameters inherited from:
panel.viewable.Layoutable
: align, aspect_ratio, css_classes, design, height, min_width, min_height, max_width, max_height, styles, stylesheets, tags, width, width_policy, height_policy, sizing_mode, visiblepanel.viewable.Viewable
: loadingpanel.pane.base.PaneBase
: margin, default_layout, objectpanel.pane.markup.HTMLBasePane
: enable_streamingpanel.pane.markup.Markdown
: dedent, disable_math, extensions, hard_line_break, plugins, renderer, renderer_optionsalert_type = Selector(default='primary', label='Alert type', names={}, objects=['primary', 'secondary', 'success', 'danger', 'warning', 'info', 'light', 'dark'])