Developer Docs
Events
The fatzebra.js Javascript SDK will emit various events that your client-side Javascript code can subscribe to.
An event may be emitted along with a data payload, which is encapsulated into a CustomEvent object and can be retrieved via the detail property of the event.
List of fatzebra.js events
Successful Event Data Format
| Attribute | Type | Description |
|---|---|---|
message |
string | message |
data |
object | data |
javascript example
{
message: "xxx",
data: {
...
}
}Error Event Data Format
| Attribute | Type | Description |
|---|---|---|
errors |
array of string | error messages |
data |
object | This could be null if no data is available. |
javascript example
{
errors: [
"xxx",
...
],
data: {
//
}
}