Use the following code to create a basic inputEx TreeField.
1 | new inputEx.TreeField({parentEl: 'container1', |
2 | elementType: { |
3 | type: 'inplaceedit', |
4 | formatValue: function(val) { return "<img src='"+val+"favicon.ico'>"+val; }, |
5 | editorField: {type: 'string' }, |
6 | value: 'Edit me' |
7 | } |
8 | }); |
view plain | print | ? |