📅  最后修改于: 2021-01-08 04:32:37             🧑  作者: Mango
这是一个多功能的固定位置面板。用于显示通知栏。默认情况下,它显示在顶部。我们可以通过指定position属性来设置它的位置。我们还可以设置通知栏的效果,例如:淡入淡出或滑动。除了所有这些,它还包含下表中列出的各种其他属性。
Attribute | Default value | Type | Description |
---|---|---|---|
id | null | String | It is an unique identifier of the component. |
rendered | true | Boolean | It sets boolean value to specify the rendering of the component. |
binding | null | Object | It is an expression that maps to a server side UIComponent instance in a backing bean. |
style | null | String | It is used to set style of the container element. |
styleClass | null | String | It is used to set styleClass of the container element. |
position | top | String | It is used to set position of the bar. |
effect | fade | String | It is used to set name of the effect. |
effectSpeed | normal | String | It is used to set speed of the effect. |
autoDisplay | false | Boolean | It is used to set panel is displayed on page load. |
widgetVar | null | String | It is a name of the client side widget. |
在下面的示例中,我们正在实现组件。本示例包含以下文件。
// notificationBar.xhtml
Notification Bar
输出: