EasyUI Forum
May 19, 2024, 12:37:28 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: tree formatter does not work  (Read 6940 times)
tmark
Newbie
*
Posts: 7


View Profile
« 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.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: May 13, 2013, 12:44:27 AM »

Be sure to use the latest easyui version.
Logged
tmark
Newbie
*
Posts: 7


View Profile
« Reply #2 on: May 13, 2013, 01:06:36 AM »

Thank you stworthy.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!