Extensions/Authoring/dynamicContent

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

--

Adds an interactive table for users to author dynamic content. Users can also upload a file to populate the table, and export any data to work on it locally.

Supported file types for import: csv, xls, xlsx, ods, and txt.

Methods

run(optionsopt)

Sets up a listener when the data table panel opens to inject new behaviour to author dynamic content.

Since
2.24.0
Example
import { LT } from '@caspingus/lt/src/index';

LT.init(authorApp); // Set up LT with the Author API application instance variable
LT.extensions.dynamicContent.run();
Parameters:
Name Type Attributes Description
options object <optional>

Optional configuration.

{
   labels: {
       btnContinue: 'Confirm',
       csvUploadHelp: `Add dynamic data to your item by typing directly into the table below. Or, import a file
           (csv, xls, xlsx, ods, and txt are supported).`,
       headerValidationHelp: `The header row must contain only lowercase letters, numbers, and underscores.
           Hyphens are not allowed.`,
   }
}