Use the following code to create a basic inputEx TreeField.
new Y.inputEx.TreeField({parentEl: 'container1',
elementType: {
type: 'inplaceedit',
formatValue: function(val) { return "
"+val; },
editorField: {type: 'string' },
value: 'Edit me'
}
});