p:工具提示方向

时间:2012-09-06 15:21:25

标签: attributes primefaces tooltip

p:tooltip是否有任何属性用于方向,因为我们使用rich:tooltip?我基本上希望我的工具提示显示在图像的右上角。不知道该怎么做。 p:tooltip的属性数量似乎非常有限。以下是richfaces的代码。

<h:commandLink value="Simple Link" id="link">
<rich:toolTip followMouse="true" direction="top-right" mode="ajax" value="#{bean.toolTipContent}" horizontalOffset="5" 
    verticalOffset="5" layout="block">
    <f:facet name="defaultContent">
        <f:verbatim>DEFAULT TOOLTIP CONTENT</f:verbatim>
    </f:facet>
</rich:toolTip>

1 个答案:

答案 0 :(得分:0)

这可能适合你吗? http://fractalsoft.net/primeext-showcase-mojarra/sections/tooltip/customizedTooltips.jsf;jsessionid=14y1z1yedm21t910h6zonwboq

Primefaces ext有一个非常整洁的工具提示imo。