Source code for aj.plugins.dashboard.api

from jadi import interface

[docs]@interface class Widget(): """ 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 powered by Disqus