documentationfor yFiles for HTML 2.6

IClipboardHelper

This interface can be used to customize the clipboard behavior for individual IModelItems.

Inheritance Hierarchy
IClipboardHelper

Remarks

Implementations of this interface can decorate the lookup method of IModelItems to change their behavior during clipboard actions.

Examples

The easiest way to decorate certain model items with a custom IClipboardHelper implementation is via the various decorators available on GraphDecorator:
Using GraphDecorator to attach a custom IClipboardHelper to nodes
const nodeDecorator = graph.decorator.nodeDecorator
// Set a custom IClipboardHelper for all nodes in the graph
nodeDecorator.clipboardHelperDecorator.setImplementation(
  new MyClipboardHelper()
)

Related Programming Samples

Clipboard
Shows different ways of using the class GraphClipboard for Copy & Paste operations.

Type Details

yfiles module
view-component
yfiles-umd modules
All view modules
Legacy UMD name
yfiles.graph.IClipboardHelper

See Also

Methods

Static Methods