Get All Categories
Usage
Get All the site categories that are enabled in Fast Simon App
Example
window.FastSimonSDK.getAllCategories({
callback: (result) => {
// handle here
}
});
or
window.FastSimonSDK.getAllCategories().then(r => {
// handle here
});
Options
Option | Type | Description |
---|---|---|
callback | (Response) => void (required when promised is not used) | Callback to handle the results |
Response
TypeScript Typing
type Response = Category[]