Attribute
Key | Type | Default | Description |
---|---|---|---|
renderSaveButton | boolean | false | If true, the API will render a Save Button |
Example
var initOptions = {
...
"config": {
"questions_api_init_options": {
"renderSaveButton": true
}
}
};
HTML Hook
A HTML node with class "learnosity-save-button" is required for the button to be rendered. The node acts as a placeholder and can be positioned anywhere within the DOM. If the attribute is true and the node is not found, nothing is rendered in the UI and an error event is triggered.
<span class="learnosity-save-button"></span>
UI Example
Attribute
Key | Type | Default | Description |
---|---|---|---|
renderSubmitButton | boolean | false | If true, the API will render a Submit Button |
Example
var initOptions = {
...
"config": {
"questions_api_init_options": {
"renderSubmitButton": true
}
}
};
HTML Hook
An HTML node with class "learnosity-submit-button" is required for the button to be rendered. The node acts as a placeholder and can be positioned anywhere within the DOM. If the attribute is true and the node is not found, nothing is rendered in the UI and an error event is triggered.
<span class="learnosity-submit-button"></span>