Index

mmo-list

1 symbol · generated 5 Oct 2026

element

mmo-list

mmo-list.jhs:1

List element to display a list of items

<mmo-list type withkeys src min max withorder disabled></mmo-list>
Extends
CustomElement
# HTML Inner html is used to replace the items value's input. the value of the given element is linked to the item's value

Index

typeused to set the type of the items value's input.
withkeysif present, keys are editable (Map).
srcthe view to use to edit the value of items.
minminimum number of items (used by validity)
maxmaximum number of items (used by validity)
withorderif present, the rows carry a drag handle and can be reordered
disabledif present, nothing can be added, edited or removed
ViewDefault static readonly accessor
withkeys accessorGet the withkeys of the list
withorder accessorGet the withorder of the list
min accessorGet the min of the list
max accessorGet the max of the list
src accessorGet the src of the list
value accessorGet the value of the list
type accessorGet the type of the list
validity readonly accessorGet the validity of the list
validityMessage readonly accessorGet the validity message of the list
init() async
onDragstart(event)On drag start
onDragend(event)On drag end
onDragover(event)On drag over
onDrop(event)On drop
checkValidity()Check the validity of the list
willValidate()Check if the list will validate
addItem()Add an item to the list
stopEdit()Stop the edit of an item
editItem(target)Edit an item
openPanel(key, isNew)Open a panel to edit an item

Attributes7

type

mmo-list.jhs

used to set the type of the items value's input. Incompatible with src

type

withkeys

mmo-list.jhs

if present, keys are editable (Map). else value is treated as a list.

withkeys

src

mmo-list.jhs

the view to use to edit the value of items. Incompatible with type.

src

min

mmo-list.jhs

minimum number of items (used by validity)

min

max

mmo-list.jhs

maximum number of items (used by validity)

max

withorder

mmo-list.jhs

if present, the rows carry a drag handle and can be reordered

withorder

disabled

mmo-list.jhs

if present, nothing can be added, edited or removed

disabled

Properties10

withkeys

accessormmo-list.jhs:122

Get the withkeys of the list

get withkeys() set withkeys(value)
Type
boolean

withorder

accessormmo-list.jhs:141

Get the withorder of the list

get withorder() set withorder(value)
Type
boolean

min

accessormmo-list.jhs:177

Get the min of the list

get min() set min(value)
Type
integer

max

accessormmo-list.jhs:194

Get the max of the list

get max() set max(value)
Type
integer

src

accessormmo-list.jhs:211

Get the src of the list

get src() set src(value)
Type
string

value

accessormmo-list.jhs:227

Get the value of the list

get value() set value(value)
Type
array

type

accessormmo-list.jhs:243

Get the type of the list

get type() set type(value)
Type
string

validity

readonlyaccessormmo-list.jhs:279

Get the validity of the list

get validity()
Type
object

validityMessage

readonlyaccessormmo-list.jhs:288

Get the validity message of the list

get validityMessage()
Type
string

Methods11

onDragstart(event)

mmo-list.jhs:58

On drag start

onDragstart(event)
eventMouseEvent- The event

onDragend(event)

mmo-list.jhs:71

On drag end

onDragend(event)
eventMouseEvent- The event

onDragover(event)

mmo-list.jhs:86

On drag over

onDragover(event)
eventMouseEvent- The event

checkValidity()

mmo-list.jhs:262

Check the validity of the list

checkValidity()
returnsbooleanThe validity of the list

willValidate()

mmo-list.jhs:271

Check if the list will validate

willValidate()
returnsbooleanThe will validate of the list

editItem(target)

mmo-list.jhs:360

Edit an item

editItem(target)
targetHTMLElement- The target of the item

openPanel(key, isNew)

mmo-list.jhs:397

Open a panel to edit an item

openPanel(key, isNew = false)
keystring- The key of the item
isNew = falseboolean- If the item is new
returnsPromiseThe promise of the panel