Source code for dash.contrib.plugins.weather.dash_widgets

__all__ = ('WeatherAndroidMainWidget', 'BigWeatherAndroidMainWidget')

from django.template.loader import render_to_string

from dash.base import BaseDashboardPluginWidget

# ***********************************************************************
# ****************** Android widgets for Memo plugin ********************
# ***********************************************************************

[docs]class WeatherAndroidMainWidget(BaseDashboardPluginWidget): """ Weather plugin widget for Android layout (placeholder `main`). """ layout_uid = 'android' placeholder_uid = 'main' plugin_uid = 'weather' cols = 2 rows = 2 #media_js = [ # 'js/dash_plugin_weather.js', #] media_css = [ 'css/dash_plugin_weather.css', ]
[docs] def render(self, request=None): context = {'plugin': self.plugin} return render_to_string('weather/render_main.html', context) # *************************************************************************** # ****************** Android widgets for Big weather plugin ***************** # ***************************************************************************
[docs]class BigWeatherAndroidMainWidget(WeatherAndroidMainWidget): """ Big memo plugin widget for Android layout (placeholder `main`). """ plugin_uid = 'big_weather' cols = 3 rows = 3
Read the Docs v: 0.1.4
Versions
latest
0.3.2
0.3
0.2.4
0.1.4
Downloads
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.