Skip to content

Instantly share code, notes, and snippets.

@hvitorino
Created January 13, 2012 18:30
Show Gist options
  • Save hvitorino/1607931 to your computer and use it in GitHub Desktop.
Save hvitorino/1607931 to your computer and use it in GitHub Desktop.
treenode append
var resposta = Ext.decode(response.responseText);
var novaPasta = resposta.Dados;
var novoNode = new Ext.tree.TreeNode({
id: novaPasta.id,
idServer: novaPasta.idServer,
text: novaPasta.text,
textFilter: novaPasta.textFilter,
children: [],
leaf: true
});
pastaSelecionada.appendChild(novoNode);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment