如何自定义JSF2的Primefaces 2.2.1中的终端组件? [英] How to customize the terminal component in Primefaces 2.2.1 for JSF2?
问题描述
大家好,我想问一下是否有一种方法可以在primefaces 2.2.1中自定义终端组件?我想将默认提示"prime $"更改为其他内容.除指针"外,光标"的其他选项还有哪些.有关终端组件的其他自定义技巧将不胜感激.
Hi guys I'd like to ask if there is a way to customize the terminal component in primefaces 2.2.1 ? Id like to change the default prompt which is "prime $" into something else. Also what are the other options for the "cursor" aside from "pointer". Other customization tips regarding the terminal component will be very much appreciated.
谢谢.
推荐答案
将默认提示"prime $"更改为其他内容.
阅读用户指南,或使用IDE自动完成功能查看所有可用的组件属性.您需要prompt
属性.例如
Read the User Guide or use the IDE autocompletion to see all available component attributes. You need the prompt
attribute. E.g.
<p:terminal prompt="C:\\>" ... />
此人将使用C:\>
而不是默认的prime $
.
This one will use C:\>
instead of default prime $
.
除了指针"之外,光标"还有其他选择.
这实际上是一个单独的问题,因为它与JSF完全无关.但是,请检查 CSS规范.以下是相关性摘录,其中显示了所有指定的值:
This actually belongs in a separate question as that's totally unrelated to JSF. But ala, just check the CSS spec. Here's an extract of relevance which shows all specified values:
值:[[< uri>,] * [自动|十字准线|默认值指针|搬家电子调整| ne-resize | nw-resize | n调整大小|调整大小| sw-resize | s-resize | w调整大小|文字|等待帮助|进度]] | |继承
Value: [ [<uri> ,]* [ auto | crosshair | default | pointer | move | e-resize | ne-resize | nw-resize | n-resize | se-resize | sw-resize | s-resize | w-resize | text | wait | help | progress ] ] | inherit
这篇关于如何自定义JSF2的Primefaces 2.2.1中的终端组件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!