dash.contrib.layouts.bootstrap2 package

Submodules

dash.contrib.layouts.bootstrap2.apps module

class dash.contrib.layouts.bootstrap2.apps.Config(app_name, app_module)[source]

Bases: django.apps.config.AppConfig

label = 'dash.contrib.layouts.bootstrap2'
name = 'dash.contrib.layouts.bootstrap2'

dash.contrib.layouts.bootstrap2.conf module

dash.contrib.layouts.bootstrap2.conf.get_setting(setting, override=None)[source]

Get a setting from dash.contrib.layouts.bootstrap2 conf module, falling back to the default.

If override is not None, it will be used instead of the setting.

Parameters:
  • setting – String with setting name
  • override – Value to use when no setting is available. Defaults to None.
Returns:

Setting value.

dash.contrib.layouts.bootstrap2.dash_layouts module

class dash.contrib.layouts.bootstrap2.dash_layouts.Bootstrap2FluidLayout(user=None)[source]

Bases: dash.base.BaseDashboardLayout

Bootstrap 2 Fluid layout.

cell_units = 'px'
edit_template_name = 'bootstrap2/fluid_edit_layout.html'
form_snippet_template_name = 'bootstrap2/snippets/generic_form_snippet.html'
get_view_template_name(request=None, origin=None)[source]

Override the master view template for public dashboard app.

media_css = ('css/bootstrap.css', 'css/dash_layout_bootstap2_fluid.css')
media_js = ('js/bootstrap.js', 'js/dash_layout_bootstap2_fluid.js')
name = 'Bootstrap 2 Fluid'
placeholders = [<class 'dash.contrib.layouts.bootstrap2.dash_layouts.Bootstrap2FluidMainPlaceholder'>]
plugin_widgets_template_name_ajax = 'bootstrap2/plugin_widgets_ajax.html'
uid = 'bootstrap2_fluid'
view_template_name = 'bootstrap2/fluid_view_layout.html'

dash.contrib.layouts.bootstrap2.dash_plugins module

class dash.contrib.layouts.bootstrap2.dash_plugins.URLBootstrapTwo1x1Plugin(layout_uid, placeholder_uid, workspace=None, user=None, position=None)[source]

Bases: dash.contrib.plugins.url.dash_plugins.BaseURLPlugin

URL dashboard plugin. The original URLPlugin, as well as the main dash.css, relies on presence of wonderful “Font awesome”. Although a lot of icon names are common between Bootstrap 2 and Font awesome, there are some specific icons, that are not present in both. Thus, the original URLPlugin is extended to address those differences.

form

alias of URLBootstrapTwoForm

uid = 'url_bootstrap_two_1x1'
class dash.contrib.layouts.bootstrap2.dash_plugins.URLBootstrapTwo2x2Plugin(layout_uid, placeholder_uid, workspace=None, user=None, position=None)[source]

Bases: dash.contrib.layouts.bootstrap2.dash_plugins.URLBootstrapTwo1x1Plugin

URL dashboard plugin.

uid = 'url_bootstrap_two_2x2'

dash.contrib.layouts.bootstrap2.dash_widgets module

class dash.contrib.layouts.bootstrap2.dash_widgets.URLBootstrapTwo1x1Bootstrap2FluidMainWidget(plugin)[source]

Bases: dash.contrib.plugins.url.dash_widgets.BaseURLWidget

URL plugin 1x1 widget for Bootstrap 2 Fluid layout (placeholder main).

layout_uid = 'bootstrap2_fluid'
media_css = ('css/dash_plugin_url_bootstrap2.css',)
placeholder_uid = 'main'
plugin_uid = 'url_bootstrap_two_1x1'
class dash.contrib.layouts.bootstrap2.dash_widgets.URLBootstrapTwo2x2Bootstrap2FluidMainWidget(plugin)[source]

Bases: dash.contrib.layouts.bootstrap2.dash_widgets.URLBootstrapTwo1x1Bootstrap2FluidMainWidget

URL2x2 plugin widget for Bootstrap 2 Fluid layout (placeholder main).

cols = 2
plugin_uid = 'url_bootstrap_two_2x2'
rows = 2
class dash.contrib.layouts.bootstrap2.dash_widgets.BaseBookmarkBootstrapTwoWidget(plugin)[source]

Bases: dash.contrib.plugins.url.dash_widgets.BaseBookmarkWidget

Base Bookmark plugin widget for Bootstrap 2 Fluid layout.

media_css = ('css/dash_plugin_bookmark_bootstrap2.css',)

dash.contrib.layouts.bootstrap2.defaults module

dash.contrib.layouts.bootstrap2.forms module

class dash.contrib.layouts.bootstrap2.forms.URLBootstrapTwoForm(*args, **kwargs)[source]

Bases: dash.contrib.plugins.url.forms.URLForm

Almost like the original, but has less options.

base_fields = OrderedDict([('title', <django.forms.fields.CharField object at 0x7f10ff44ed90>), ('url', <django.forms.fields.URLField object at 0x7f10ff44ee50>), ('external', <django.forms.fields.BooleanField object at 0x7f10ff44ef10>), ('image', <django.forms.fields.ChoiceField object at 0x7f10ff44efd0>)])
declared_fields = OrderedDict([('title', <django.forms.fields.CharField object at 0x7f10ff44ed90>), ('url', <django.forms.fields.URLField object at 0x7f10ff44ee50>), ('external', <django.forms.fields.BooleanField object at 0x7f10ff44ef10>), ('image', <django.forms.fields.ChoiceField object at 0x7f10ff44efd0>)])
media

dash.contrib.layouts.bootstrap2.settings module

Module contents