Navigation

    Windy Community

    • Register
    • Login
    • Search
    • Unread
    • Categories
    • Groups
    • Go to windy.com

    How to listen for plugin-menu event

    Windy API v4
    3
    3
    250
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      gregora last edited by

      How to call a callback once the menu is opened or closed?

      broadcast.on('pluginOpend', () => {
      console.log('test');
      });

      doesn't work

      1 Reply Last reply Reply Quote 0
      • ivo
        ivo Administrator last edited by

        broadcast.on('pluginOpened', ident => {
            console.log(ident)
        })
        
        1 Reply Last reply Reply Quote 1
        • jakubvrana
          jakubvrana | Premium last edited by

          Note the typo pluginOpend -> pluginOpened.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Windyty, S.E. - all rights reserved. Powered by excellent NodeBB
          NodeBB & contributors, OSM & contributors, HERE maps
          Terms and Conditions     Privacy Policy