O
O
OWIII2020-02-16 14:34:57
JavaScript
OWIII, 2020-02-16 14:34:57

Error in creating ext Js 7.1 tree?

Tell me please! Already shoveled everything. what is possible but I can not understand what the problem is !!
I take ready-made examples of components from the documentation - copy/paste. Works. Great!
But as soon as I take an example of a simple tree component from the documentation. then nicherta is not displayed and a bunch of errors come out.

Code example:

Ext.create('Ext.tree.Panel', {
    renderTo: document.body,
    title: 'Simple Tree',
    width: 300,
    height: 250,
    root: {
        text: 'Root',
        expanded: true,
        children: [{
                text: 'Child 1',
                leaf: true
            },
            {
                text: 'Child 2',
                leaf: true
            },
            {
                text: 'Child 3',
                expanded: true,
                children: [{
                    text: 'Grandchild',
                    leaf: true
                }]
            }
        ]
    }
});


Gives a bunch of errors:

5e49289e7f9a1245797677.png

I create a simple function by type to output to the console - everything works. I create a button - it works.
But the tree doesn't work! Tell me, good people. How do I get this fucking tree out. I really need this.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Cheryabushkin, 2020-02-17
@OWIII

There is a high probability that you are using ExtJs Modern, and this component can only be used with the Classic Toolkit
Sencha has a very strong distinction between these toolkits, and also by versions
In general, look at what ExtJs you have
And look here , you can switch there between Classic and Modern
5e4a63b1ca582799517145.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question