Feedback Aide API Methods
createUI()
The recommended method to use the Feedback API with our predefined UI.
You would want to use this so that you can easily integrate feedback sessions with a UI, enabling various modules or turning off certain components.
Examples
const sessionUI = await feedbackSession.createUI({
// Optional options to hide unwanted UI
modules: {
response: false,
score: false,
}
});
sessionUI.attach(document.querySelector('.my-session-01'));
await sessionUI.generateFeedback();
Arguments
-
modules object
Options to enable or disable UI components.
-
response boolean
Enable or disable the response module.
-
rubric boolean
Enable or disable the rubric module.
-
score boolean
Enable or disable the score module.
-
feedback boolean
Enable or disable the feedback module.
-
Return value
Type Promise
See FeedbackSessionUI for more information.