Forum Discussion
christopher_gillis
8 years agoCommunity Manager
Hi Angela,
The connectId argument expects the id attribute of the HTML node you'd like to add the tooltip to. I was able to get the ID of a column header with the sample below in Google Chrome in 11.0 SP12.
Christopher Gillis Aras Labs Software Engineer
var columnHeaderId = document.selectSingleNode("//div[contains(@class, 'dojoxGridSortNode') and text() = 'YOUR_COLUMN_NAME']").parentNode.id;
You should then be able to pass the result of this sample directly into your tooltip like below.
require(["dijit/Tooltip", "dojo/domReady!"], function(Tooltip){
new Tooltip({
connectId: [columnHeaderId],
label: "the text for the tooltip"
});
});
Please note that the class names and general structure of the HTML of Aras Innovator can change between service packs, so you may need to modify this sample if you're not using 11.0 SP12.
Chris
Christopher Gillis Aras Labs Software Engineer