run
Creates a new runner instance with the specified properties.
Signature
run(props: IClassic): Promise<IClassicRunner>
Parameters
Name | Type | Optional | Description |
---|---|---|---|
props | IClassic | No | Specifies the runner properties. |
Return value
Returns a promise to the IClassicRunner
controller reference of the runner. This controller reference can be used to control (start, stop, pause, etc.) the runner.
Example
import { run } from "@tripetto/runner-classic";
// Open the runner
run({
definition: /* Supply your form definition here */
});
// Retrieve a reference to the runner using async await
const runner = await run({
definition: /* Supply your form definition here */
});
// Or use the promise
run({
definition: /* Supply your form definition here */
}).then((runner) => {
// Do something with the runner here
});