Global Partoo
The Partoo object is available globally when you include the JS SDK in your page:
Partoo.init() method to embed and manage Partoo views inside an iframe.
Partoo.init(divId, options)
Initializes a Partoo App instance by inserting an iframe into the specified DOM element.
Parameters
Optional configuration object. See Options for details.
Returns
Returns aPage object used to interact with the embedded iframe.
Page
ThePage object returned by Partoo.init() provides methods for navigation, authentication, event handling, and more.
Methods
setOptions(options)
Updates the iframe configuration after initialization.
Options object to update the view behavior. See Options.
login(connectionToken)
Authenticates the user and navigates to the defined startPage.
navigate(route, seedData, additionalParams)
Navigates to a specific page in the Partoo App.
Target page identifier. See Supported Pages.
back()
Navigates to the previous page in iframe history.
forward()
Navigates forward in iframe history (opposite of back()).
on(eventId, callback)
Registers a callback function for a specific event triggered in the Partoo App.
ID of the event. See Available callback events.
Options
Theoptions parameter is accepted by both Partoo.init() and setOptions():