Options
All
  • Public
  • Public/Protected
  • All
Menu

Class: mxCellAttributeChange

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

Hierarchy

  • mxCellAttributeChange

Index

Constructors

Methods

Constructors

constructor

Methods

execute

  • execute(): void
  • Function: execute

    Changes the attribute of the cell's user object by using <mxCell.setAttribute>.

    Returns void

Generated using TypeDoc