public class Hover extends Object
Constructor and Description |
---|
Hover() |
Modifier and Type | Method and Description |
---|---|
Integer |
getAnimationDuration() |
HoverMode |
getMode() |
JavaScriptFunction |
getOnHover() |
Hover |
setAnimationDuration(Integer animationDuration)
Default
400 Duration in milliseconds it takes to animate hover style changes |
Hover |
setMode(HoverMode mode)
Default
single |
Hover |
setOnHover(JavaScriptFunction onHover)
Default
null Called when any of the events fire. |
public HoverMode getMode()
setMode(HoverMode)
public Hover setMode(HoverMode mode)
Default single
Sets which elements hover. Acceptable options are 'single', 'label', 'x-axis', or 'dataset'.
single
highlights the closest element.
label
highlights elements in all datasets at the same X value.
x-axis
also highlights elements in all datasets at the same X
value, but activates when hovering anywhere within the vertical slice of
the x-axis representing that X value.
dataset
highlights the closest dataset.
public Integer getAnimationDuration()
setAnimationDuration(Integer)
public Hover setAnimationDuration(Integer animationDuration)
400
public JavaScriptFunction getOnHover()
setOnHover(JavaScriptFunction)
public Hover setOnHover(JavaScriptFunction onHover)
null
Copyright © 2020. All rights reserved.