简体   繁体   English

如何在Primefaces 2.2.1 for JSF2中自定义终端组件?

[英]How to customize the terminal component in Primefaces 2.2.1 for JSF2?

Hi guys I'd like to ask if there is a way to customize the terminal component in primefaces 2.2.1 ? 嗨,大家好,我想问一下是否有一种方法可以在primefaces 2.2.1中自定义终端组件? Id like to change the default prompt which is "prime $" into something else. 我想将默认提示“ prime $”更改为其他内容。 Also what are the other options for the "cursor" aside from "pointer". 除“指针”外,“光标”的其他选项还有哪些。 Other customization tips regarding the terminal component will be very much appreciated. 有关终端组件的其他自定义技巧将不胜感激。

Thanks in advance. 提前致谢。

change the default prompt which is "prime $" into something else. 将默认提示“ prime $”更改为其他内容。

Read the User Guide or use the IDE autocompletion to see all available component attributes. 阅读用户指南或使用IDE自动完成功能查看所有可用的组件属性。 You need the prompt attribute. 您需要prompt属性。 Eg 例如

<p:terminal prompt="C:\\&gt;" ... />

This one will use C:\\> instead of default prime $ . 这将使用C:\\>而不是默认的prime $


Also what are the other options for the "cursor" aside from "pointer". 除“指针”外,“光标”的其他选项还有哪些。

This actually belongs in a separate question as that's totally unrelated to JSF. 这实际上属于一个单独的问题,因为它与JSF完全无关。 But ala, just check the CSS spec . 但是,只要检查CSS规范即可 Here's an extract of relevance which shows all specified values: 以下是相关性摘录,其中显示了所有指定的值:

Value: [ [<uri> ,]* [ auto | 值:[[<uri>,] * [自动| crosshair | 十字准线| default | 默认值 pointer | 指针| move | 搬家 e-resize | 电子调整| ne-resize | ne-resize | nw-resize | nw-resize | n-resize | n调整大小| se-resize | 调整大小| sw-resize | sw-resize | s-resize | s-resize | w-resize | w调整大小| text | 文字| wait | 等待 help | 帮助| progress ] ] | 进度]] | | inherit 继承

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM