mmo-list
1 symbol · generated 5 Oct 2026
mmo-list
mmo-list.jhs:1List element to display a list of items
- Extends
- CustomElement
Index
| type | used to set the type of the items value's input. | |
| withkeys | if present, keys are editable (Map). | |
| src | the view to use to edit the value of items. | |
| min | minimum number of items (used by validity) | |
| max | maximum number of items (used by validity) | |
| withorder | if present, the rows carry a drag handle and can be reordered | |
| disabled | if present, nothing can be added, edited or removed | |
| ViewDefault static readonly accessor | ||
| withkeys accessor | Get the withkeys of the list | |
| withorder accessor | Get the withorder of the list | |
| min accessor | Get the min of the list | |
| max accessor | Get the max of the list | |
| src accessor | Get the src of the list | |
| value accessor | Get the value of the list | |
| type accessor | Get the type of the list | |
| validity readonly accessor | Get the validity of the list | |
| validityMessage readonly accessor | Get 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.jhsused to set the type of the items value's input. Incompatible with src
type
withkeys
mmo-list.jhsif present, keys are editable (Map). else value is treated as a list.
withkeys
src
mmo-list.jhsthe view to use to edit the value of items. Incompatible with type.
src
min
mmo-list.jhsminimum number of items (used by validity)
min
max
mmo-list.jhsmaximum number of items (used by validity)
max
withorder
mmo-list.jhsif present, the rows carry a drag handle and can be reordered
withorder
disabled
mmo-list.jhsif present, nothing can be added, edited or removed
disabled
Properties10
ViewDefault
staticreadonlyaccessormmo-list.jhs:30withkeys
accessormmo-list.jhs:122Get the withkeys of the list
- Type
boolean
withorder
accessormmo-list.jhs:141Get the withorder of the list
- Type
boolean
min
accessormmo-list.jhs:177Get the min of the list
- Type
integer
max
accessormmo-list.jhs:194Get the max of the list
- Type
integer
src
accessormmo-list.jhs:211Get the src of the list
- Type
string
value
accessormmo-list.jhs:227Get the value of the list
- Type
array
type
accessormmo-list.jhs:243Get the type of the list
- Type
string
validity
readonlyaccessormmo-list.jhs:279Get the validity of the list
- Type
object
validityMessage
readonlyaccessormmo-list.jhs:288Get the validity message of the list
- Type
string
Methods11
init()
asyncmmo-list.jhs:38onDragstart(event)
mmo-list.jhs:58On drag start
| event | MouseEvent | - The event |
onDragend(event)
mmo-list.jhs:71On drag end
| event | MouseEvent | - The event |
onDragover(event)
mmo-list.jhs:86On drag over
| event | MouseEvent | - The event |
onDrop(event)
mmo-list.jhs:104On drop
| event | MouseEvent | - The event |
checkValidity()
mmo-list.jhs:262Check the validity of the list
| returns | boolean | The validity of the list |
willValidate()
mmo-list.jhs:271Check if the list will validate
| returns | boolean | The will validate of the list |
addItem()
mmo-list.jhs:299Add an item to the list
stopEdit()
mmo-list.jhs:348Stop the edit of an item
editItem(target)
mmo-list.jhs:360Edit an item
| target | HTMLElement | - The target of the item |
openPanel(key, isNew)
mmo-list.jhs:397Open a panel to edit an item
| key | string | - The key of the item |
| isNew = false | boolean | - If the item is new |
| returns | Promise | The promise of the panel |