Guide
Learn everything about the boardme Guide API.
Last updated
Was this helpful?
Learn everything about the boardme Guide API.
Last updated
Was this helpful?
boardme allows you programmatic access to Guides. The API calls help you gain fine-grained control over your user onboarding process.
To use the API you need to have boardme installed into your website or application!
In your application code, you can find boardme on the window object. It is in the global scope.
NPM package is available for improved development experience. Check it out .
You can add boardme to your project by executing the command below in your terminal.
Once installed, you can import it into your JavaScript or TypeScript code base and start using the API. The autocomplete should help you find the methods you are looking for.
If you are using the boardme API through the installed package, all your calls will be handled gracefully and you don't have to worry about a script import error crashing your application.
You can fetch and store a Guide by calling this API method. When calling it you have to pass the unique identifier of the Guide as a string.
Once you stored it, you can use the public API available on the guide itself to hook up event listeners, change guide configuration, or alter its behavior.
guideIdentifier - unique identifier of the Guide as a string.
Guide - boardme Guide object.
You can display guides programmatically by calling this API method. When calling it you have to pass in the unique identifier of the Guide as a string.
guideIdentifier - unique identifier of the Guide as a string.
targetElement - HTML Target Element, only relevant when rendering Tooltips. Optional
Guide - boardme Guide object.
You can remove a specific guide from the screen by calling this API method. When calling it you have to pass the unique identifier of the Guide as a string.
guideIdentifier - unique identifier of the Guide as a string.
You can remove multiple guides from the screen by calling this API method. When calling it you'll have to pass an array containing the unique identifiers of the Guides you'd like to clear.
guideIdentifiers - unique identifiers of the Guides as a string array.
It renders the guide onto the screen.
Guide - boardme Guide object.
It hides the guide from the screen.
Guide - boardme Guide object.
You can execute a custom piece of logic when the guide has been submitted by hooking into this event listener.
callback - function to be executed when the Guide has been submitted.
You can execute a custom piece of logic when the guide has been dismissed by hooking into this event listener.
callback - function to be executed when the Guide has been dismissed.
It alters the behavior of the guide and lets you gain extra control over it.
behavior- behavior can be "auto" or "manual". The default behavior is auto, but by setting it to manual you can take programmatic control of the guide. The library exports an enum of type GuideBehavior that you can use for the argument, but strings work as well.