Navigation

    Windy Community

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

    can detail emit a detailClosed ?

    Windy Plugins
    2
    3
    194
    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.
    • davink
      davink Kiter | Premium last edited by

      i'm trying to fire a function upon detail closing and was hoping i could access something similar to picker when closing ie:
      picker.on('pickerClosed', () => {});
      any help with the best approach most appreciated! or how i can get a look at all functions available

      rittels 1 Reply Last reply Reply Quote 0
      • rittels
        rittels Code contributor @davink | Premium last edited by

        @davink

        W.broadcast.on("pluginClosed",e => {if (e=="detail") do_your_thing })
        

        look at W.broadcast in console for all events you can subscribe to.

        davink 1 Reply Last reply Reply Quote 1
        • davink
          davink Kiter @rittels | Premium last edited by

          @rittels thanks! that worked

          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