EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: tmark on May 12, 2013, 10:53:20 PM



Title: tree formatter does not work
Post by: tmark on May 12, 2013, 10:53:20 PM
Hi

I would like to format the nodetexts in the tree, but formatter does not fire when I load the tree.

Code:
$obj.tree({
    id : 'id',
    text : 'text',
    lines : true,
    formatter: function (node) {
        console.log("formatter called");
        return '<strong>' + node.text + '</strong>';
    }
});

Tree contains the elements without formatting it.

Thanks your help.


Title: Re: tree formatter does not work
Post by: stworthy on May 13, 2013, 12:44:27 AM
Be sure to use the latest easyui version.


Title: Re: tree formatter does not work
Post by: tmark on May 13, 2013, 01:06:36 AM
Thank you stworthy.