Adorkable / node-red-contrib-ui-led

A simple LED status indicator for the Node-RED Dashboard
MIT License
16 stars 12 forks source link

Can't order layout position #19

Closed agenteDserrano closed 5 years ago

agenteDserrano commented 5 years ago

When change the position on the layout no changes on the UI.

agenteDserrano commented 5 years ago

I find the issue on file led.js order: 0 must change for order: config.order

        if (checkConfig(config, node)) {
            var done = ui.addWidget({
                node: node,
                format: HTML(config, ledStyleTemplate('gray')),
                group: config.group,
                templateScope: "local",
                order: config.order,
                beforeEmit: beforeEmit,
                initController: initController
            });
yoiang commented 5 years ago

Good catch!

yoiang commented 5 years ago

I will close this once it has been included in the published version, thanks for your help!

yoiang commented 5 years ago

Pushed in 0.2.0!