Flow Functions

run()

"run"will execute when the user clicks the tile or executes the script via the Otto search bar.

  • Returning a duration (in ms) will delay the closure of the flow wheel by the specified duration.
  • Returning true leaves flow open.
  • Returning false closes flow immediately.
  • Omitting the return will default the close duration to 500ms.
run((event) => {
    example_event = {
        from: 'wheel' // where was the command sent from. Can be 'wheel' 'otto' or 'debugger'
    }
    return 1500; 
});

Community of Makers

Our Discord has evolved into a vibrant hub for widget creators. Seek answers to your questions, and showcase your innovative widgets to a community of passionate makers.