0

Is there any way to detect what jQuery-UI plugins are available in a website? In particular, I am curious as to whether there is an easy console.log() or console echo command (like $.ui.version) that would list available plugins.

Part 2 of the question would be how to add plugins to an existing jUI setup without overwriting the entire library, but we'll save that one for later :)

emc
  • 507
  • 1
  • 7
  • 25

1 Answers1

1

You would need to parse through $.ui object . It contains all the jQueryUI widget methods but also contains other methods. Inspect it in a browser console to see what it contains. You could build an array of widget names and then check the names in array exist in $.ui

charlietfl
  • 170,828
  • 13
  • 121
  • 150