@wailsio/runtime
    Preparing search index...

    Function On

    • Registers a callback function to be executed when the specified event occurs.

      Type Parameters

      • E extends string & {} = string & {}

      Parameters

      • eventName: E

        The name of the event to register the callback for.

      • callback: WailsEventCallback<E>

        The callback function to be called when the event is triggered.

      Returns () => void

      A function that, when called, will unregister the callback from the event.