mykle1 / Hello-Lucy

Hide/Show pages, all or individual modules. Improved and more user friendly
MIT License
44 stars 11 forks source link

How to add support for my module? #3

Closed E3V3A closed 6 years ago

E3V3A commented 6 years ago

How can I add support for MMM-FlightsAbove?

E3V3A commented 6 years ago

I just added support to this in my module. (If I did it right.)

    // This come from the MM CORE or from other modules
    notificationReceived: function (notification, payload, sender) {
        if (notification === "DOM_OBJECTS_CREATED") {
            // The div with id "flightsabove" now exists, so we can load Tabulate.
            this.loadTabulate();
        }
        // This come from external control modules like: Hello-Lucy or MMM-voice
        if (notification === 'HIDE_FLIGHTS') {
            this.hide(1000);
        }  else if (notification === 'SHOW_FLIGHTS') {
            this.show(1000);
        }
    },

I think that's all I need to do right? If, yes, and ok, then please add my FLIGHTS key words to your files.

mykle1 commented 6 years ago

Ok, I added the notifications to MMM-voice and the node_helper. You should be good to go. :-)

E3V3A commented 6 years ago

Super! Thank you.