Thanks for four reply, but I need other way to use que custom toolTip option in the properties box of my List Component. That option, put a toolTip over all columns of the List, but, I need put my toolTip over an specific column.
Te solution by webratio support is the next:
If you want to show the Tooltip on a specific Attribute (column) you can refer to these steps (for WebRatio 7.x):
- define custom as Tooltip Position Property
- create a custom Component Template (e.g. a template for the List component)
- edit this template
- define wr-tooltipTarget as Style Class Property of the desired Attribute (select the Component in the Grid and choose the desired Attribute node in the Outline View).
In the custom Template you have to:
1) write this code in the Groovy definitions section of the template:
def printTooltipActionAttribute = { position = "index" ->
def tooltipLink = getById(unit["ajaxTooltipLink"])
def formPostDescriptor = ""
if (isFormBased(tooltipLink.parent)) {
formPostDescriptor = "," + getFormBeanName(page) + ",button:" + tooltipLink["id"]
}
%]data-tooltip-action="<webratio:Link link="[%= getLinkId(tooltipLink) %][%= getElementContext(page, "_", "_", null) %]" position="[%= position %]"/>[%= formPostDescriptor %]"[%
}
2) Write [% printTooltipActionAttribute(index) %] between the parameters of the html element in which the Attribute value is printed. If you are using a different variable for indexing, replace "index" with your variable. For example:
<td [% printTooltipActionAttribute(index) %] class="<wr:StyleClass/> value<c:if test="${<wr:Id context="unit"/>.currentIndex eq index}">Current</c:if>[% if (useAlternate == "true") { %]<c:if test="${index mod 2 eq 0}">Alternate</c:if>[% } %] [%= attr["type"]%]">
<wr:Value />
</td>
In this way you should be able to apply the tooltip only on the desired column.
Thanks!