Js代码例子

ApiPanel = function() {
    ApiPanel.superclass.constructor.call(this, {
        id:'api-tree',
        region:'west',
        split:true,
        width: 280,
        minSize: 175,
        maxSize: 500,
        collapsible: true,
        margins:'0 0 5 5',
        cmargins:'0 0 0 0',
        rootVisible:false,
        lines:false,
        autoScroll:true,
        animCollapse:false,
        animate: false,
        collapseMode:'mini',
        loader: new JFUI.tree.TreeLoader({
			preloadChildren: true,
			clearOnLoad: false
		}),
        root: new JFUI.tree.AsyncTreeNode({
            text:'JFUI JS',
            id:'root',
            expanded:true,
            children:[Demos.classData]
         }),
        collapseFirst:false
    });

    this.getSelectionModel().on('beforeselect', function(sm, node){
        return node.isLeaf();
    });
};

你可能感兴趣的:(Js代码例子)