EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: gib65 on June 15, 2017, 02:17:35 PM



Title: child nodes won't show up in tree
Post by: gib65 on June 15, 2017, 02:17:35 PM
Hello,

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

(http://www.shahspace.com/acm/json viewer harness testing/EasyUI/tree - inherent and residual cause children not showing up.png)

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?


Title: Re: child nodes won't show up in tree
Post by: gib65 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. :(