📅  最后修改于: 2021-01-08 04:31:43             🧑  作者: Mango
这是一个高度可定制的borderLayout模型。即使我们不熟悉网页设计,也很容易创建复杂的布局。它由5个不同的布局单位组成,分别是顶部,左侧,中心,右侧和底部。我们可以称其为东,西,北,南和中心。
PrimeFaces提供了组件,该组件用于在JSF应用程序中布局页面。
Attribute | Default value | Type | Description |
---|---|---|---|
rendered | true | Boolean | It takes boolean value to specify the rendering of the component. |
fullPage | false | Boolean | It specifies whether layout should span all page or not. |
style | null | String | It is used to set style to apply on container element. |
onResize | null | String | It executes when a layout unit is resized. |
onClose | null | String | It executes when a layout unit is closed. |
onToggle | null | String | It executes when a layout unit is toggled. |
resizeTitle | null | String | It is used to set title label of the resize button. |
collapseTitle | null | String | It is used to set title label of the collapse button. |
expandTitle | null | String | It is used to set title label of the expand button. |
closeTitle | null | String | It is used to set title label of the close button. |
在下面的示例中,我们正在实现组件。本示例包含以下文件。
// layout.xhtml
Layout
输出: