Interface TooltipFooterCallback
-
- All Known Implementing Classes:
AbstractTooltipFooterCallback
public interface TooltipFooterCallback
The tooltip label configuration is nested below the tooltip configuration using the callbacks key.
The tooltip has the following callbacks for providing text.
All functions must return either a string or an array of strings. Arrays of strings are treated as multiple lines of text.
This interface takes care about labels to apply to the footer.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default List<String>
onAfterFooter(IsChart chart, List<TooltipItem> items)
Text to render after the footer section.
If returnsnull
or empty list, it will be ignored.default List<String>
onBeforeFooter(IsChart chart, List<TooltipItem> items)
Returns text to render before the footer section.
If returnsnull
or empty list, it will be ignored.default List<String>
onFooter(IsChart chart, List<TooltipItem> items)
Returns text to render as the footer of the tooltip.
If returnsnull
or empty list, it will be ignored.
-
-
-
Method Detail
-
onBeforeFooter
default List<String> onBeforeFooter(IsChart chart, List<TooltipItem> items)
Returns text to render before the footer section.
If returnsnull
or empty list, it will be ignored.- Parameters:
chart
- chart instanceitems
- list of all tooltip items- Returns:
- a list of labels to apply to the title.
-
onFooter
default List<String> onFooter(IsChart chart, List<TooltipItem> items)
Returns text to render as the footer of the tooltip.
If returnsnull
or empty list, it will be ignored.- Parameters:
chart
- chart instanceitems
- list of all tooltip items- Returns:
- a list of labels to apply to the title.
-
onAfterFooter
default List<String> onAfterFooter(IsChart chart, List<TooltipItem> items)
Text to render after the footer section.
If returnsnull
or empty list, it will be ignored.- Parameters:
chart
- chart instanceitems
- list of all tooltip items- Returns:
- a list of labels to apply to the title.
-
-