I’m attempting to add tooltip to table headings to help user with entering data.
Something that worked, but I’m not 100% sure if i’m using it how it is meant to be used:
$ = skuid.runtime.getPage(<pageName>).$
skuid.runtime.getPage(<pageName>).utils._floatingComponentFactory.createTooltip(
$('#colTest')T0],
{
text: "Test 12345",
compact: true,
position: "top",
useTransition: false,
delay: 750
},
skuid.runtime.getPage(<pageName>).$C(<tableId>)
);
I’m especially unsure about the 3rd parameter. The function is requiring me to to provide it, so it can subscribe to it. I would like to know why?
Also, the function accepts 4th parameter, but I’m not sure what would go there and why would I want to provide it.
Also, is there a way for me to breaklines in the text?
Note: $('#colTest')
is <th>
tag of table.
I have also tried setting title
attribute of a tag, and it does produce a tooltip. Though, the styling is not consistent.
I am welcome to other suggestions. Preferably I am able to breaklines, and can control the styling.
Thank you,
Lukas