Class CellAttributeChange

Action to change the attribute of a cell's user object. There is no method on the graph model that uses this action. To use the action, you can use the code shown in the example below.

Example:

To change the attributeName in the cell's user object to attributeValue, use the following code:

model.beginUpdate();
try
{
var edit = new mxCellAttributeChange(
cell, attributeName, attributeValue);
model.execute(edit);
}
finally
{
model.endUpdate();
}

Constructor: mxCellAttributeChange

Constructs a change of a attribute of the DOM node stored as the value of the given Cell`.

Implements

Constructors

Properties

Methods

Constructors

Properties

attribute: string
cell: Cell
previous: any
value: any

Methods