rootMounted
Executes a callback function when RateParity's root element is mounted to the DOM.
Example
rpt({
type: "event",
command: "rootMounted",
payload: ({ rootRef }) => {
console.log(rootRef);
},
});
Payload
A function to be executed when RateParity's root element is mounted
Callback parameters
The callback function is passed an object as parameter
Object property | Type | Description |
---|---|---|
rootRef | element | A reference to the root element |