PopoverTool
MMO.editor · 1 symbol · generated 30 Sep 2026
PopoverTool
Tool.js:228A tool whose button opens a panel under it (a colour grid, a link form, a table menu ...).
- Namespace
MMO.editor- Extends
- Tool
Index
| onClick(editor, button) | ||
| renderPopover(editor) | ||
| createItem(content, onclick, attrs) | A button of the panel, which does not take the focus away from the text either. |
Methods3
onClick(editor, button)
Tool.js:229| editor | ||
| button |
renderPopover(editor)
Tool.js:237| editor | HTMLElement | |
| returns | Array<Node> | Node | the panel's content |
createItem(content, onclick, attrs)
Tool.js:248A button of the panel, which does not take the focus away from the text either.
| content | string | Node | |
| onclick | Function | |
| attrs = {} | Object | more attributes |
| returns | HTMLButtonElement |