This example shows how to create a property grid from an object.
Note that the js is not minified so it is readable. See property.js.