Initialization
Obtain an Appetize client instance using one of the getClient methods.
getClient(selector)
Get an instance of the Appetize client.
Parameters
Name | Type | Description |
---|---|---|
selector |
| A query selector string pointing to the embedded iframe |
getClient(selector, config)
Get an instance of the Appetize client as well as set the initial config when loading the client.
Useful when the embed link might not be known up front and the configuration has to be applied at runtime.
Parameters
Name | Type | Description |
---|---|---|
selector |
| A query selector string pointing to the embedded iframe |
config | A JSON object describing the Configuration options for the device. |
Last updated