EasyUI Forum
June 30, 2024, 01:46:16 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: child nodes won't show up in tree  (Read 3352 times)
gib65
Newbie
*
Posts: 29


View Profile Email
« on: June 15, 2017, 02:17:35 PM »

Hello,

I'm experimenting with Tree. Here's what it looks like:



Notice that Inherent Causes and Residual Causes have no children. And yet, this is the code:

$('#easyuiTreeList').tree({

            data: [
                {
                    text: 'Safeguards',
                    iconCls: 'icon-save',
                    children: [{
                        text: 'BPCS-CF-AAH-601B...'
                    },
                    {
                        text: 'ROUND - Daily lab rounds'
                    },
                    {
                        text: 'Other - Methanol injection...'
                    },
                    {
                        text: 'BPCS - BL-LAH-019 on 153 and 154...'
                    },
                    {
                        text: 'Other - Field operator deployed...'
                    }]
                },
                {
                    text: 'Recommendations',
                    iconCls: 'icon-add',
                    children: [{
                        text: 'BPCS - CF-AAH-601B...'
                    },
                    {
                        text: 'ROUND - Daily lab rounds.'
                    },
                    {
                        text: 'Other - Methanol injection...'
                    },
                    {
                        text: 'BPCS - BL-LAH-019 on 153 and 154...'
                    }]
                },
                {
                    text: 'Inherent Causes',
                    iconCls: 'icon-remove',
                    Children: [{
                        text: 'Loss of flow from source...'
                    },
                    {
                        text: 'Loss of destination from Sales...'
                    },
                    {
                        text: 'No concerns identified.'
                    }]
                },
                {
                    text: 'Residual Causes',
                    iconCls: 'icon-edit',
                    Children: [{
                        text: 'Loss of flow from source...'
                    },
                    {
                        text: 'Loss of destination from Sales...'
                    },
                    {
                        text: 'No concerns identified.'
                    }]
                }
            ]
        });

Notice that Inherent Causes and Residual Causes DO have children. Why are they not showing up?
Logged
gib65
Newbie
*
Posts: 29


View Profile Email
« Reply #1 on: June 15, 2017, 03:26:17 PM »

My bad...

'Children' has upper case 'C' in the last two nodes. Changed to lower case and it was fixed. Didn't catch that. Sad
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!