PDA

View Full Version : check-tree in SA 4.1



$encha
14 Jan 2017, 2:07 AM
How can I add check-tree to my view using Sencha Architect 4.1 (ExtJS 6.2.x).
Example:
http://examples.sencha.com/extjs/6.2.0/examples/kitchensink/#check-tree
I dont find any component from the toolbox with xtype:'check-tree'.

petr.vecera
16 Jan 2017, 10:04 AM
That xtype specifies the xtype of that new class which is written. There is no framework class check-tree.

As you can see from the extend config it is basic tree Panel.

See the comment at the beginning of that file:

* This example shows simple checkbox selection in a tree. It is enabled on leaf nodes by
* simply setting `checked: true/false` at the node level.
http://examples.sencha.com/extjs/6.2.0/examples/kitchensink/#check-tree

Check the Data tab, you will see that there is checked. So if you want to have checklist on your tree just add this to your json.