Documentation

File Sender

Description

File sender allows you to save files within the lesson or send them as messages to the student's teacher using the appropriate LMS service.

In case the module did not receive the necessary metadata from the LMS, it will be displayed but inactive.

Properties

The list starts with the common properties, learn more about them by visiting the Modules description section. The other available properties are described below.

Property name Description
Source Id Id of the module whose contents will be sent. If content type is set to File, this property should be empty.
Source type Specifies the type of the source: a Paragraph addon, a Media Recorder addon, or a file sent by the user.
Button text Text on the send button
Dialog title Title of the dialog displaying the teachers' list
Disable send button If checked, it will not be possible to send the file to a teacher (although it will still be saved in the lesson) and the the Send button will be hidden.

Supported commands

Command name Params Description
showTeacherList --- Displays the teacher selection dialog
show --- Shows the addon if it was hidden
hide --- Hides the addon if it was visible

CSS classes

Class name Description
.file-sender-wrapper The div wrapping all addon contents
file-sender-input-wrapper The input field element (only visible if Source type is set to file)
file-sender-sent-file-label The element displaying the name of the uploaded file
file-sender-sent-file-reset The "reset uploaded file" element
file-sender-send-file-button The "send button" element
file-sender-teacher-dialog The main element of the teacher selection dialog
file-sender-teacher-dialog-titlebar The titlebar of the teacher selection dialog
file-sender-teacher-dialog-content The element wrapping the teachers list within the teacher selection dialog
file-sender-teacher-dialog-element The individual teacher element within the teacher selection dialog
file-sender-inactive The class set on the main element of the addon if it hasn't (yet, or at all) received the required metadata.