addon/utils/tip.js
function _setData(data) {
  _element.find('.tip-title').html(data.title || "");
  _element.find('.tip-text').html(data.text || "");
  _element.find('.tip-text')[data.text ? 'show' : 'hide']();
  _element.find('.tip-list').html(_createList(data.kvList) || "");
}
function _setData(data) {
  _element.find('.tip-title').html(data.title || "");
  _element.find('.tip-text').html(data.text || "");
  _element.find('.tip-text')[data.text ? 'show' : 'hide']();
  _element.find('.tip-list').html(_createList(data.kvList) || "");
}
function _setData ( data ) { _element . find ( '.tip-title' ) . html ( data . title || "" ) ; _element . find ( '.tip-text' ) . html ( data . text || "" ) ; _element . find ( '.tip-text' ) [ data . text ? 'show' : 'hide' ] ( ) ; _element . find ( '.tip-list' ) . html ( _createList ( data . kvList ) || "" ) ; }
Tip supports 3 visual entities in the tooltip. Title, description text and a list.
_setData sets all these based on the passed data object
@param data {Object} An object of the format
{
title: "tip title",
text: "tip description text",
kvList: {
propertyName1: "property value 1",
..
propertyNameN: "property value N",
}
}
Tip supports 3 visual entities in the tooltip . Title description text and a list . _setData sets all these based on the passed data object