开发者

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

开发者 https://www.devze.com 2023-04-12 22:06 出处:网络
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

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.

Thanks in advance.


change the default prompt which is "prime $" into something else.

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:\\&gt;" ... />

This one will use C:\> instead of default 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. But ala, just check the CSS spec. Here's an extract of relevance which shows all specified values:

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号