Event target for listening to node changes. You can subscribe to "view"
events, which are triggered every time the node's view changes.
node.events.on('view', () => {
// do something...
});
Returns a proxy object for this node. Allows to access object properties by key.
Optionalpath: ApiPathReturns the API object of the extension if the node is an extension node.
When the ext parameter is provided, it checks if the node is an instance
of the given extension and returns the object's TypeScript type. Otherwise,
it returns the API object of the extension, but without any type checking.
API of the extension
Returns the API object of the extension if the node is an extension node.
When the ext parameter is provided, it checks if the node is an instance
of the given extension and returns the object's TypeScript type. Otherwise,
it returns the API object of the extension, but without any type checking.
API of the extension
Optionalpath: ApiPathOptionalpath: ApiPathDeletes a list of keys from the object.
List of keys to delete.
Reference to itself.
Find a child node at the given path starting from this node.
Optionalpath: ApiPathPath to the child node to find.
JSON CRDT node at the given path.
Checks if a key exists in the object.
Key to check.
True if the key exists, false otherwise.
Optionalpath: ApiPathOptionalpath: ApiPathSets a list of keys to the given values.
List of key-value pairs to set.
Reference to itself.
Optionalpath: ApiPathOptionalpath: ApiPathOptionalpath: ApiPath
Local changes API for the
objJSON CRDT node ObjNode.