📅  最后修改于: 2021-01-08 04:37:19             🧑  作者: Mango
这是一个小的弹出框,显示有关事件的信息。当用户与组件交互时,它用于向用户显示消息。它包括各种功能,如皮肤特效,事件和主题支持。
PrimeFaces提供组件,以在JSF应用程序中创建信息性消息。
它还具有下表列出的各种属性。
Attribute | Default value | Type | Description |
---|---|---|---|
Value | null | Object | It is used to set value of the component. |
showEvent | mouseover | String | It is used to set event to display tooltip. |
showEffect | fade | String | Effect to be used for displaying. |
hideEvent | mouseout | String | It is used to set event for hiding the tooltip. |
hideEffect | fade | String | It is used to set effect to be used for hiding. |
showDelay | 150 | Integer | It is used to set delay time to show tooltip in milliseconds. |
hideDelay | 0 | Integer | It is used to set delay time to hide tooltip in milliseconds. |
for | null | String | It is used to attach the tooltip. |
style | null | String | It is used to set inline CSS style of the tooltip. |
escape | true | Boolean | It defines whether html would be escaped or not. |
trackMouse | false | Boolean | Tooltip position follows pointer on mousemove. |
beforeShow | null | String | It is used to execute script before tooltip is shown. |
position | right | String | It is used to set position of the tooltip. |
在下面的示例中,我们正在实现组件。本示例包含以下文件。
// tooltip.xhtml
Tooltip
输出: