Source code for aj.plugins.dashboard.api

from jadi import interface


@interface
[docs]class Widget(object): """ Base interface for dashboard widgets. """ id = None name = None """Display name""" template = None """Angular view template URL""" config_template = None """Configuration dialog template URL""" def __init__(self, context): self.context = context
[docs] def get_value(self, config): """ Override this to return the widget value for the given config dict. """ raise NotImplementedError

Comments

comments powered by Disqus