talpor / django-dashing

django-dashing is a customisable, modular dashboard application framework for Django to visualize interesting data about your project. Inspired in the dashboard framework Dashing
BSD 3-Clause "New" or "Revised" License
731 stars 108 forks source link

support change color for list widget #79

Closed itsN0ll closed 7 years ago

itsN0ll commented 7 years ago

support changing list widget color from dashing-config.js for example:

dashboard.addWidget('today_hits_widget', 'List', {
    color: '#008a00',
    getData: function () {
        var self = this;
        Dashing.utils.get('today_hits', function(scope) {
            $.extend(self.scope, scope);
        });
    },
    interval: 2000
});
mtdb commented 7 years ago

thanks :)