Sep 10, 2015, 2:32 PM
[CLOSED] Treepanel appendChild with Icon
I have following code:
Thanks.
function saveSearch(btn, text) {
if (btn == 'ok')
App.direct.SaveSearch(text, {
success: function (result) {
var store = App.TreePanel1.getStore();
node = store.getNodeById("savedSearches");
node.appendChild({
text: result,
leaf: true,
})
}
});
};
This works, but I want to add node with icon: Icon.TableSave
, and that newly created node is selected. Please help. Thanks.
Last edited by Daniil; Sep 11, 2015 at 1:12 PM.
Reason: [CLOSED]