dash.contrib.plugins.video package

Submodules

dash.contrib.plugins.video.apps module

class dash.contrib.plugins.video.apps.Config(app_name, app_module)[source]

Bases: django.apps.config.AppConfig

label = 'dash.contrib.plugins.video'
name = 'dash.contrib.plugins.video'

dash.contrib.plugins.video.dash_plugins module

class dash.contrib.plugins.video.dash_plugins.BaseVideoPlugin(layout_uid, placeholder_uid, workspace=None, user=None, position=None)[source]

Bases: dash.base.BaseDashboardPlugin

Base Video plugin.

form

alias of VideoForm

group = <django.utils.functional.__proxy__ object at 0x7f10ff393890>
html_classes = ['video']
name = <django.utils.functional.__proxy__ object at 0x7f10ff393850>
post_processor()[source]

dash.contrib.plugins.video.dash_widgets module

class dash.contrib.plugins.video.dash_widgets.BaseVideoWidget(plugin)[source]

Bases: dash.base.BaseDashboardPluginWidget

Base video plugin widget.

media_css = ('css/dash_plugin_video.css',)
render(request=None)[source]
class dash.contrib.plugins.video.dash_widgets.Video1x1Widget(plugin)[source]

Bases: dash.contrib.plugins.video.dash_widgets.BaseVideoWidget

Video plugin 1x1 widget.

plugin_uid = 'video_1x1'
class dash.contrib.plugins.video.dash_widgets.Video2x2Widget(plugin)[source]

Bases: dash.contrib.plugins.video.dash_widgets.BaseVideoWidget

Video plugin 2x2 widget.

cols = 2
plugin_uid = 'video_2x2'
rows = 2
class dash.contrib.plugins.video.dash_widgets.Video3x3Widget(plugin)[source]

Bases: dash.contrib.plugins.video.dash_widgets.BaseVideoWidget

Video plugin 3x3 widget.

cols = 3
plugin_uid = 'video_3x3'
rows = 3
class dash.contrib.plugins.video.dash_widgets.Video4x4Widget(plugin)[source]

Bases: dash.contrib.plugins.video.dash_widgets.BaseVideoWidget

Video plugin 4x4 widget.

cols = 4
plugin_uid = 'video_4x4'
rows = 4
class dash.contrib.plugins.video.dash_widgets.Video5x5Widget(plugin)[source]

Bases: dash.contrib.plugins.video.dash_widgets.BaseVideoWidget

Video plugin 5x5 widget.

cols = 5
plugin_uid = 'video_5x5'
rows = 5

dash.contrib.plugins.video.forms module

class dash.contrib.plugins.video.forms.VideoForm(data=None, files=None, auto_id=u'id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False)[source]

Bases: django.forms.forms.Form, dash.base.DashboardPluginFormBase

Video form for VideoPlugin plugin.

base_fields = OrderedDict([('title', <django.forms.fields.CharField object at 0x7f10ff393690>), ('url', <django.forms.fields.URLField object at 0x7f10ff393750>)])
declared_fields = OrderedDict([('title', <django.forms.fields.CharField object at 0x7f10ff393690>), ('url', <django.forms.fields.URLField object at 0x7f10ff393750>)])
media
plugin_data_fields = [('title', ''), ('url', '')]

Module contents