[ Index ]

PHP Cross Reference of Moodle 310

title

Body

[close]

/h5p/h5plib/v124/joubel/editor/scripts/ -> h5peditor-metadata-author-widget.js (summary)

Creates a widget to add author information to a form

File Size: 159 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 5 functions

  addAuthor()
  addDefaultAuthor()
  resetForm()
  removeAuthor()
  renderAuthorList()

Functions
Functions that are not part of a class:

addAuthor(name, role)   X-Ref
Add an author to the list of authors

param: {string} [name]
param: {string} [role]

addDefaultAuthor(fallbackName, fallbackRole)   X-Ref
Add default/current author to list of authors

param: {string} fallbackName Name to fallback to if there is no valid name chosen already
param: {string} fallbackRole Role to fallback to if there is no valid role chosen already

resetForm()   X-Ref
Resets the form


removeAuthor(author)   X-Ref
Remove author from list.

param: {object} author - Author to be removed.
param: {string} author.name - Author name.
param: {string} author.role - Author role.

renderAuthorList()   X-Ref
No description



Generated: Wed Jan 22 11:59:49 2025 Cross-referenced by PHPXref 0.7.1