如何获得PrimeFaces widgetVar函数列表? [英] How can I get a PrimeFaces widgetVar function list?

查看:106
本文介绍了如何获得PrimeFaces widgetVar函数列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以将我重定向到Web资源,在其中我可以找到所有widgetVar JavaScript函数列表的列表. toggle(),show(),hide()等等等.

Can someone redirect me to a web resource, where I can find list of all widgetVar JavaScript functions list, eg. toggle(), show(), hide () etc etc.

感谢您的回应.

推荐答案

您可以找到 datatable.js .

You can find the JavaScript sources of all widgets at GitHub. For example: datatable.js.

您还可以打开浏览器的JavaScript控制台并输入:

You can also open your browser's JavaScript console and type:

PF('yourWidget').__proto__

这将为您提供属性列表(包括功能).在 http://www.primefaces.org/showcase/ui/上进行尝试data/datatable/filter.xhtml

That will give you the properties list (including functions). Try it at http://www.primefaces.org/showcase/ui/data/datatable/filter.xhtml

PF('carsTable').__proto__

在Chrome中,这会导致对象具有可折叠的节点:

In Chrome this results in an object with collapsible nodes:

▼ c {SORT_ORDER: Object}
  ▶ SORT_ORDER: Object
  ▶ _render: function()
  ▶ addGhostRow: function()
  ▶ addResizers: function()
  ▶ addRow: function()
  ▶ addSelection: function(a)
  ▶ addSortMeta: function(a)
  ...

这篇关于如何获得PrimeFaces widgetVar函数列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆