Class: HighlighterElement

HighlighterElement

A HighlighterElement indicates whether highlighting and popovers should appear.

Attributes

Option Default Description
highlighting true Highlight a element when the mouse is over it
popovers true Show a popover for the element when the mouse is over it
popoverContents undefined Function to create html for the popover

new HighlighterElement(type, options)

Create a HighlighterElement

Name Type Description
type String

The element type: 'feature', 'plot', 'contig', 'backbone'.

options Object

Attributes used to create the highlighter element.

Members

highlightingBoolean

Get or set whether highlighting should occur

popoverBoolean

Get or set whether popovers should occur

popoverContentsfunction

Get or set the function to call to produce HTML for the popover. The provided function will be called with one argument: an event-like object.

typeString

Get or set the type (e.g. 'feature', 'plot', 'contig', 'backbone')