Index

mmo-console

1 symbol · generated 30 Sep 2026

element

mmo-console

mmo-console.jhs:1

Console element to display errors, warning and logs

<mmo-console></mmo-console>
Extends
CustomShadowElement

Index

warningCount readonly accessorGet the warning count
errorCount readonly accessorGet the error count
constructor()
init()
log(data, parent)Log a message to the console
hasErrors()Check if the console has errors
addLogs(data, group)Add logs to the console

Properties2

warningCount

readonlyaccessormmo-console.jhs:46

Get the warning count

get warningCount()
Type
number

Methods5

log(data, parent)

mmo-console.jhs:24

Log a message to the console

log(data, parent = null)
dataobject- The data to log
parent = nullHTMLElement- The parent element to log the message to

hasErrors()

mmo-console.jhs:38

Check if the console has errors

hasErrors()
returnsbooleanTrue if the console has errors, false otherwise

addLogs(data, group)

mmo-console.jhs:63

Add logs to the console

addLogs(data, group = null)
dataarray- The logs to add to the console
group = nullstring- The group to add the logs to (optional)