Author Aide API Methods
navigate()
Navigates the Author Aide API to the specified location. The navigation is immediate and any unsaved changes in the current view will be lost.
You would want to use this method to advance to a different view in your application.
Examples
authorAideApp.navigate('/mcq');
Arguments
-
location string
The view to navigate to.
Possible values
"/"
- navigates to the menu view"/mcq"
- navigates to the multiple choice generation view"/true-false"
- navigates to the true-false generation view"/cloze"
- navigates to the drag and drop generation view"/translate"
- navigates to the translate view
Return value
Type boolean
Before executing, this method will check if the new location is valid.
Returns true
if it is possible to navigate.
Returns false
if unable to navigate.
Note The return value only indicates whether it is possible to navigate to a new location based on the validation. It does not indicate that the navigation has completed.
Caveats
Navigating multiple times in quick succession can have unintended side effects and should be avoided.