Author Aide API Methods
moveInstanceTo()
Moves the Author Aide API instance into the specified DOM element.
You would want to use this method to relocate the Author Aide API instance and re-render its visual elements in the browser.
Examples
// Standard usage where the UI has been successfully moved
let element = document.getElementById('author-aide-api-container');
let moveResult = authorAideApp.moveInstanceTo(element);
console.log(moveResult);
// Returns false where the target DOM element doesn't exist
element = document.getElementById('non-existing-element');
moveResult = authorAideApp.moveInstanceTo(element);
console.log(moveResult);
Arguments
-
element object
The DOM element to append the Author Aide API instance to.
Return value
Type boolean
Returns true
if successful, or false
if unable to move the Author Aide API instance to the provided element
.