HighlighterView.add(cellView, selector, id, options)
Create an instance of the highlighter and add it to the cellView.
It returns an instance of the HighlighterView.
If a highlighter with the same id exists on the CellView, it is removed and a new highlighter is added and returned. You can check if a highlighter already exists by calling HighlighterView.get().
Type | Description | Example |
---|---|---|
String | A selector from the cell's markup. |
|
Object | An object with property selector, which is a selector from the (cell/label/port) markup. There is additional property port (id of a port) available for dia.ElementView. And property label (index of a label) is available for dia.LinkView. If no selector property is provided, the root is used. |
|
SVGElement | An SVGElement, the descendant of cellView.el or the root itself. |
|