The TypeField provide an interface to create a custom form.
1 | new inputEx.TypeField({parentEl: 'container1'}); |
view plain | print | ? |
The value returned by a TypeField is a JSON configuration for an inputEx field. Here's how to load such a value :
1 | new inputEx.TypeField({ |
2 | parentEl: 'container2', |
3 | value: { |
4 | type:'url', |
5 | label: 'Website', |
6 | name:'website', |
7 | typeInvite: 'Enter a URL', |
8 | size: 30, |
9 | description: 'You can provide a default value to TypeField', |
10 | value: 'http://neyric.github.com/inputex' |
11 | } |
12 | }); |
view plain | print | ? |