I have found a useful jQuery Plugin to show very fast a javascript object as a form. Its jqPropertyGrid, you can easily show an object with one line of code:
$(‘#property-grid’).jqPropertyGrid(record.data, options);
I have used the plugin to show fast and easy options for my form editor. Its pretty simple and makes it a lot of easier to make an object editable. Also you can with one command serialize the object back or you can use an event listener, so you get informed on every change the user has made on the property grid.
If you want see some examples, you can see here: https://gswilcox01.github.io/jqPropertyGrid/index.html
Leave a Reply