Index

mmo-filemanager

1 symbol · generated 5 Oct 2026

element

mmo-filemanager

mmo-filemanager.jhs:1

The files of mmo.edms the user can see: filtered by a label of the tree, a search, whose they are or the trash, a page at a time. A file is opened on the side, to rename it, describe it, classify it, fill the fields its labels define; several are classified, downloaded or put in the trash at once. The files dropped go into the folder shown.

<mmo-filemanager url token labels mine readonly></mmo-filemanager>
Extends
CustomShadowElement

Index

urlwhere mmo.edms' api is: the page's (MMO.edms.config.url) by default
tokenthe session's CSRF token: the page's by default
labelsthe label shown first (its id)
mineonly the user's own files
readonlyfiles to see, not to change: no upload, no action
readonly readonly accessor
init()
fail(title, error)Say what went wrong
loadLabels()Load the tree of the labels
sections()The sections of the tree: the labels of the tree itself (_TAGS, _FILESYSTEM, a user's space) are titles
renderTree()Draw the tree
showLabel(id)Show the files of a label (and of those under it), or of every label
createLabel(parent)Make a label: under $parent, or one of the user's tags
editLabel(label)Rename a label, change its color, or delete it
labelsWith(action)
reload()Load the first page of the files again
loadMore()Load the next page of the files
load(append)
search(text)Search the files whose name holds $text
setScope(scope)
sortBy(field)Sort by $field, the other way when it is sorted by it already
renderFiles()Draw the files listed
select(file, selected)
selectAll(selected)
clearSelection()
bulk(action, labels)Act on the files selected: trash, restore, delete (from the trash), label, unlabel
labelSelection()Put the files selected in a label
downloadSelection()Download the files selected: one as it is, several in a zip
open(file)Open a file on the side
close()
update(changes)Save a change of the file opened
renderDetail()Draw the file opened: what it is, and what can be done with it
trash(file)
restore(file)
destroy(file)

Attributes5

Properties1

Methods29

sections()

mmo-filemanager.jhs:137

The sections of the tree: the labels of the tree itself (_TAGS, _FILESYSTEM, a user's space) are titles

sections()
returnsArray<{title: string, node: Object>}

showLabel(id)

mmo-filemanager.jhs:197

Show the files of a label (and of those under it), or of every label

showLabel(id)
id?*

createLabel(parent)

mmo-filemanager.jhs:207

Make a label: under $parent, or one of the user's tags

createLabel(parent = null)
parent = null?Object

labelsWith(action)

mmo-filemanager.jhs:252
labelsWith(action)
actionstring- create (put files in them), edit...
returnsArray<Object>the labels the user can do $action with, not those of the tree itself

sortBy(field)

mmo-filemanager.jhs:318

Sort by $field, the other way when it is sorted by it already

sortBy(field)
fieldstring

selectAll(selected)

mmo-filemanager.jhs:375
selectAll(selected)
selectedboolean- true to select every file listed, false for none

bulk(action, labels)

mmo-filemanager.jhs:390

Act on the files selected: trash, restore, delete (from the trash), label, unlabel

bulk(action, labels = [])
actionstring
labels = []Array- for label/unlabel
returnsPromise

downloadSelection()

mmo-filemanager.jhs:430

Download the files selected: one as it is, several in a zip

downloadSelection()

update(changes)

mmo-filemanager.jhs:464

Save a change of the file opened

update(changes)
changesObject- MMO.edms.Api#updateFile
returnsPromise