Windy Community
    • Unread
    • Categories
    • Groups
    • Go to windy.com
    • Register
    • Login

    can detail emit a detailClosed ?

    Scheduled Pinned Locked Moved Windy Plugins
    3 Posts 2 Posters 1.8k Views 1 Watching
    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.
    • davinkD Offline
      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

      rittelsR 1 Reply Last reply Reply Quote 0
      • rittelsR Offline
        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.

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

          @rittels thanks! that worked

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Windy Community  |  Powered by excellent NodeBB
          Terms of Use     Privacy Policy     Windy.com