有没有办法在工具提示上添加鼠标到p:schedule事件?
谢谢,
罗布
答案 0 :(得分:2)
使用工具提示属性。从Primefaces 6.0开始,可以设置为true,每个事件都可以加载自己的描述。
.class {
position: absolute;
top: 40%;
top: 320px;
}
当然,您必须将描述添加到活动中。
<p:schedule tooltip="true"/>
e = new DefaultScheduleEvent();
答案 1 :(得分:-1)
你的意思是primeFaces Growl,还是工具提示?
工具提示通常用于具有TITLE属性的组件,以显示通常鼠标悬停的工具提示。
您无法向活动添加工具提示,但可能会向以下组件添加工具提示:<p:commandButton
或<p:graphicImage
..等
对于活动,您最好使用<p:growl />.
示例:
<p:growl id="mygrowl" global="true" />
<p:commandButton actionListener="#{myBean.MyActionListener}" update="mygrowl" />.
看看<p:schedule />
是否有eventlistener属性。
如果你想确定: 之间添加
<p:tooltip global="true" />
<p:growl showDetail="false" showSummary="true" id="globalgrowl" life="3000"/>
然后