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.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | object | <optional> | Object of configuration options. Properties
|
Example
const options = {
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.`,
},
}
LT.init(authorApp, {
extensions: [
{ id: 'dynamicContent', args: options },
],
});