GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • @maxgraph/core

This view

  • Original page
  • New address

GeezerVison is showing maxgraph.github.io — CellAttributeChange | @maxgraph/core

  • CellAttributeChange

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 {
const edit = new CellAttributeChange(cell, attributeName, attributeValue);
model.execute(edit);
} finally {
model.endUpdate();
}

Implements

  • UndoableChange
  • Defined in view/undoable-change/CellAttributeChange.ts:43
Index

Constructors

constructor

Properties

attribute cell previous value

Methods

execute

Constructors

constructor

  • new CellAttributeChange(
        cell: Cell,
        attribute: string,
        value: any,
    ): CellAttributeChange

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

    Parameters

    • cell: Cell
    • attribute: string
    • value: any

    Returns CellAttributeChange

    • Defined in view/undoable-change/CellAttributeChange.ts:52

Properties

attribute

attribute: string
  • Defined in view/undoable-change/CellAttributeChange.ts:45

cell

cell: Cell
  • Defined in view/undoable-change/CellAttributeChange.ts:44

previous

previous: any
  • Defined in view/undoable-change/CellAttributeChange.ts:47

value

value: any
  • Defined in view/undoable-change/CellAttributeChange.ts:46

Methods

execute

  • execute(): void

    Changes the attribute of the cell's user object by using Cell#setAttribute.

    Returns void

    Implementation of UndoableChange.execute

    • Defined in view/undoable-change/CellAttributeChange.ts:63

Settings

Member Visibility
  • Protected
  • Inherited
Theme

On This Page

Example
Constructors
constructor
Properties
attributecellpreviousvalue
Methods
execute
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.