Index

mmo-image

1 symbol · generated 5 Oct 2026

element

mmo-image

mmo-image.jhs:1

An image to pick, show, or take away: its value is the image's url. The image picked is sent to mmo.edms, and the value becomes its url -- or, when embedded, it is the image itself, as a data: url.

<mmo-image value maxwidth url token labels></mmo-image>
Extends
CustomShadowElement

Index

valuethe url of the image
maxwidththe widest the image is shown (a css length)
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 labels of the image sent: ids, or quoted paths and "#tags"
embeddedthe image is kept in the value itself (a data: url), and sent nowhere
ViewDefault static readonly accessor
value accessorGet the value of the image
maxwidth accessorGet the widest the image is shown
embedded accessorGet the embedded attribute (read as it is: not an observed attribute, whose empty value would be set false)
init()
pick()Pick an image
filesChange(input)Handle the change event of the file input
setFile(file)Make an image of $file the value: sent to mmo.edms, or, when embedded, read as a data: url
.uploadingset while the image is sent

Attributes6

maxwidth

mmo-image.jhs

the widest the image is shown (a css length)

maxwidth

url

mmo-image.jhs

where mmo.edms' api is: the page's (MMO.edms.config.url) by default

url

token

mmo-image.jhs

the session's CSRF token: the page's by default

token

labels

mmo-image.jhs

the labels of the image sent: ids, or quoted paths and "#tags"

labels

embedded

mmo-image.jhs

the image is kept in the value itself (a data: url), and sent nowhere

embedded

Properties4

value

accessormmo-image.jhs:32

Get the value of the image

get value() set value(value)
Type
string

maxwidth

accessormmo-image.jhs:46

Get the widest the image is shown

get maxwidth() set maxwidth(value)
Type
?string

embedded

accessormmo-image.jhs:58

Get the embedded attribute (read as it is: not an observed attribute, whose empty value would be set false)

get embedded() set embedded(value)
Type
boolean

Methods4

filesChange(input)

mmo-image.jhs:78

Handle the change event of the file input

filesChange(input)
inputHTMLInputElement

setFile(file)

mmo-image.jhs:89

Make an image of $file the value: sent to mmo.edms, or, when embedded, read as a data: url

setFile(file)
fileFile
returnsPromise<string>the value

CSS hooks1