HTMLElement
Optional. Set of data associated with piece in format of piece component. If not specified will be fetched.
Optional. Set of random data attributes associated with node that will be passed to save and get API calls. If not specified will be read directly from node dataset.
Mandatory unique identification id of piece. Should present in options OR in
this.options.pieces.attributeId
attribute of node, i.e. data-id
Optional. Human readable name for list in editor. If not specified will be
tried to be read from this.options.pieces.attributeName
attribute of node
Mandatory type of piece. Should present in options OR in
this.options.pieces.attribute
attribute of node, i.e. data-piece
Destroy all existing pieces
Prepares node for removal from DOM. Dirty destroys editor. Removes listeners, cleans up memory, but does not restore node fully.
of element to destroy
Get a list of all active pieces information
Checks if editor toggle is active
editor type. Optional. If not specified, returns state of "all" toggle
Check if expert mode
Check if navbar is collapsed
Set new data to a piece by piece id
id of piece
data
of the pieces
Set the active state for editors
new state
type of editor, optional. By default applies to "all" toggle.
Visualize expert features
new state
Set the collapsed state for navbar
new state
Generated using TypeDoc
Add a piece from specific node