📜  RichFaces Rich:工具栏

📅  最后修改于: 2021-01-08 12:43:59             🧑  作者: Mango

RichFaces

组件是水平工具栏。任何JavaServer Faces(JSF)组件都可以添加到工具栏。

组件不需要为基本用法定义任何属性。将子组件添加到组件,以使其在呈现时出现在工具栏上。

样式类和皮肤参数

下表包含工具栏的样式类和相应的外观参数。

Class Function Skin Parameters Mapped CSS properties
.rf-tb It is used to define styles for the toolbar itself. panelBorderColor
headerTextColor
border-color
color
.rf-tb-itm It is used to define styles for an item in the toolbar. No skin parameters.
.rf-tb-sep It is used to define styles for a separator in the toolbar. No skin parameters.
.rf-tb-sep-grid, .rf-tb-sep-line, .rf-tb-sep-disc, .rf-tb-sep-square These classes define styles for grid, line, disc, and square separators. No skin parameters.
.rf-tb-cntr It is used to define styles for the container of the toolbar. No skin parameters.

在下面的示例中,我们正在实现< rich:toolbar >组件。本示例包含以下文件。

JSF文件

// tool-bar.xhtml




Toolbar 












输出: