MMOframework
Why AI Playground Libraries Documentation Search Agency
FR EN
Index

Table

MMO.editor.tools · 1 symbol · generated 27 Oct 2026

class

Table

Table.js:10

Insert a table, then add or remove its rows and columns from the same menu.

class MMO.editor.tools.Table extends MMO.editor.PopoverTool
Namespace
MMO.editor.tools
Extends
PopoverTool
Cells merged with `colspan`/`rowspan` are kept, but the row and column actions count cells rather than columns: they are meant for the plain tables this tool inserts.

Methods4

renderPopover(editor)

Table.js:11
renderPopover(editor)
editor

apply(editor, action, rows, cols)

Table.js:52
apply(editor, action, rows = 3, cols = 3)
editorHTMLElement
actionstringinsert, row-above, row-below, col-before, col-after, header, delete-row, delete-col or delete
rows = 3numberfor insert
cols = 3numberfor insert

getCell(editor)

Table.js:140
getCell(editor)
editorHTMLElement
returns?HTMLTableCellElementthe cell holding the selection