Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

interval not works #96

Open
sunjiali opened this issue Jan 28, 2021 · 0 comments
Open

interval not works #96

sunjiali opened this issue Jan 28, 2021 · 0 comments

Comments

@sunjiali
Copy link

Hi,

I am setting interval: 20000, but it's not works. and seems it's still random fresh data.

var myDashboard = new Dashboard();
myDashboard.addWidget('customWidget', 'Number', {
    getData: function () {
        var self = this;
        Dashing.utils.get('custom_widget', function(data) {
            $.extend(self.scope, data);
        });
    },
    interval: 20000
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant