+ +

Extensions/Authoring/singleQuestion

+ + + + + + + +
+ +
+ +
+ +
+ +
+ + + + +

Extensions add specific functionality to Learnosity APIs. +They rely on modules within LT being available.

+

--

+

Restricts authors to add only none question to an item. +Allows multiple features to be added to the item, but only one question.

+

If you want any features, they must be added first.

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + + + + + + + + + + +

Methods

+ + + + + + +

run()

+ + + + + + + +

Sets up a listener to hide the "+" button if a question is +already added to the item.

+ +
+ + + + + + + +
Since
+
2.20.0
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + +
Example
+ +
import { LT } from '@caspingus/lt/src/index';
+
+LT.init(authorApp); // Set up LT with the Author API application instance variable
+LT.extensions.singleQuestion.run();
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +