/** * construct template html of hover over details window * @param: detailsObj: a JS object, with structure like: {data: payload.d, hasColorIcon: false}, data is the * required attribute of this object. payload is an object from dispatcher's call back function. payload.d * contains a single dLayout object, which contains details, the text content for details template, also may contain * other attribute like color, size etc */ export function renderTemplate(detailsObj){ if (detailsObj.hasColorIcon){ return `