我正在尝试查看prime-faces中的一些功能......我想知道prime-faces的工具提示中是否有任何字体样式和背景颜色更改功能......
请告诉我。
这是示例代码:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.org/ui">
<h:head>
<title>Tool Tip Customization</title>
</h:head>
<h:body>
<h:panelGrid columns="3" cellpadding="5">
<h:outputText value="Focus/Blur: " />
<p:inputText id="focus" title="This tooltip is displayed when input gets the focus"/>
<p:tooltip for="focus" showEvent="focus" hideEvent="blur" />
<h:outputText value="Fade: " />
<h:outputLink id="fade" value="#">
<h:outputText value="Fade Effect" />
</h:outputLink>
<p:tooltip for="fade" value="Fade effect is used by default" showEffect="fade" hideEffect="fade" />
<h:outputText value="Slide: " />
<h:outputLink id="slide" value="#">
<h:outputText value="Slide Effect" />
</h:outputLink>
<p:tooltip for="slide" value="This tooltip uses slide effect for the animation" showEffect="slide" hideEffect="slide" />
<h:outputText value="Clip/Explode: " />
<h:outputLink id="grow" value="#">
<h:outputText value="Clip/Explode Effects" />
</h:outputLink>
<p:tooltip for="grow" value="This tooltip uses clip/explode effects for the animation" showEffect="clip" hideEffect="explode" />
<h:outputText value="Content: " />
<h:outputLink id="lnk" value="#">
<h:outputText value="PrimeFaces Users" />
</h:outputLink>
<p:tooltip for="lnk">
<p:graphicImage value="C:\raman\AMAP\POC\primefaces\JSF2.0HelloWorld\WebContent\images\Users.gif" />
</p:tooltip>
</h:panelGrid>
</h:body>
</html>