This example shows how to create a property grid from an object.
Note that the js is not minified so it is readable. View the source of this page to see it.