Good idea, here you can find the example created by @vuntz https://github.com/crowbar/barclamp-neutron/blob/release/roxy/master/crowbar_framework/app/assets/javascripts/barclamps/neutron/form.js#L217