Write your own Ext tree, Ext3.4, and load all static data

Source: Internet
Author: User

Var load = var bookIT = text: "IT" leaf: Ext. messageBox. alert ("prompt", "you clicked" + var bookNovel = text: "novel" leaf: Ext. messageBox. alert ("prompt", "you clicked" + var bookFinance = text: "finance" leaf: Ext. messageBox. alert ("prompt", "you clicked" + var bookRoot = id: "root" text: "tree root" var bookTree = id: 'book _ tree' title: 'book information' rootVisible: xtype: 'treepanel 'enableDD:, bodyStyle: 'background-color: # ccccff' var houseCooking = text: "kitchenware" leaf: Ext. messageBox. alert ("prompt", "you clicked" + var houseTable = text: "" leaf: Ext. messageBox. alert ("prompt", "you clicked" + var houseRoot = id: "root" text: "tree root" var houseTree = id: 'House _ tree' title: 'houseware 'rootvisible: xtype: 'treepanel 'enableDD: bodyStyle: 'background-color: # ccccff' var electronComputer = text: "computer" leaf: Ext. messageBox. alert ("prompt", "you clicked" + var electronRoot = id: "root" text: "tree root" var electronTree = id: 'electron _ tree' title: 'electronic' xtype: 'treepanel 'rootVisible: enableDD: bodyStyle: 'background-color: # ccccff' var clothesMan = text: "men's wear" leaf: Ext. messageBox. alert ("prompt", "you clicked" + var clothesGirl = text: "Women's Wear" leaf: Ext. messageBox. alert ("prompt", "you clicked" + var clothesRoot = id: "root" text: "tree root" var clothesTree = id: 'clothes _ tree' rootVisible: xtype: 'treepanel 'enableDD: title: 'clothing 'bodystyle: 'background-color: # ccccff' layout: 'border' region: 'North' contentEl: 'Main _ top' height: 100 border: margins: '0 0 5 0' region: 'west' collapsible:, title: 'category' width: 200 minSize: 100 maxSize: 400, collapsible:, autoScroll: split:, layout: 'accordion' titleCollapse:, collapseFirst:, animate:, hideCollapseTool:, activeOnTop: region: 'center' xtype: 'tabpanel 'contentel: 'main _ right' title: "item"} Ext. onReady (load );

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.