pl-file-preview element¶
Provides an in-browser list of all files submitted by a student through submission elements like pl-file-editor, pl-file-upload, and pl-rich-text-editor, or through workspaces. A preview of each file's content is also displayed for text-only files (including source code), images, PDF files and Jupyter Notebooks. It is commonly used in the submission panel in conjunction with the pl-external-grader-results element, though it can also be used when manual or internal grading is used to grade files.
Sample element¶
<pl-file-preview></pl-file-preview>
Example implementations¶
See also¶
pl-file-editorto provide an in-browser code environmentpl-file-uploadto receive files as a submissionpl-external-grader-resultsto include output from autograded codepl-codeto display blocks of code with syntax highlightingpl-xss-safeto display HTML or Markdown code provided by students