currentCursor property

String get currentCursor

Gets or sets the current cursor for the Diagram, overriding the #defaultCursor.

Valid CSS cursors are accepted, such as "auto", "default", "none", "context-menu", "help", "pointer", "progress", "wait", etc.

It is possible to use custom cursors with the syntax "url(path_to_image), default". A fallback (like default here) is necessary for a custom cursor to work.

To read more about cursor syntax, go to: CSS cursors (mozilla.org).

If the specified cursor is not accepted by the platform, this property setter will try prepending -webkit- and -moz- prefixes when assigning the "cursor" CSS style property.

Setting this property does not notify about any changed event. Setting this value to the empty string ('') returns the Diagram's cursor to the #defaultCursor.

Implementation

_i2.String get currentCursor => _i4.getProperty(
      this,
      'currentCursor',
    );
set currentCursor (String value)

Implementation

set currentCursor(_i2.String value) {
  _i4.setProperty(
    this,
    'currentCursor',
    value,
  );
}