Options
All
  • Public
  • Public/Protected
  • All
Menu

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`.

Hierarchy

  • CellAttributeChange

Implements

  • UndoableChange

Index

Constructors

constructor

Properties

attribute

attribute: string

cell

cell: Cell

previous

previous: any

value

value: any

Methods

execute

  • execute(): void

Generated using TypeDoc