📅  最后修改于: 2021-01-08 04:23:09             🧑  作者: Mango
它是一个输入文本框,可在浏览器中轻松编辑值。它由两个成员组成,显示元素是初始可单击的标签,内联元素是切换显示元素时显示的隐藏内容。
PrimeFaces提供了组件,该组件用于在JSF应用程序中创建就地。它具有下表列出的各种属性。
Attribute | Default value | Type | Description |
---|---|---|---|
label | null | String | It is used to set label to be shown in display mode. |
emptyLabel | null | String | It is used to set label to be shown in display mode when value is empty. |
effect | fade | String | It is used to set effect to be used when toggling. |
effectSpeed | normal | String | It is a speed of the effect. |
disabled | false | Boolean | It prevents hidden content to be shown. |
style | null | String | It is used to set inline style of the main container element. |
editor | false | Boolean | It specifies the editor mode. |
saveLabel | Save | String | It is used to set tooltip text of save button in editor mode. |
cancelLabel | Cancel | String | It is used to set tooltip text of cancel button in editor mode. |
event | click | String | It is used to set name of the client side event to display inline content. |
toggleable | true | Boolean | It defines if inplace is toggleable or not. |
在下面的示例中,我们正在实现组件。本示例包含以下文件。
// inplace.xhtml
Inplace
输出: