`
tesia
  • 浏览: 32024 次
  • 性别: Icon_minigender_2
  • 来自: 广州
社区版块
存档分类
最新评论

树形面板Ext.tree.Panel

阅读更多
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link  rel="stylesheet" type="text/css"  href="ext-4.0.7-gpl/resources/css/ext-all.css" />
<script type="text/javascript"  src="ext-4.0.7-gpl/bootstrap.js"></script>
<script type="text/javascript" src="ext-4.0.7-gpl/locale/ext-lang-zh_CN.js"></script>
<script type="text/javascript">
Ext.onReady(function(){
Ext.create('Ext.tree.Panel',{
   title:'tree 面板简单示例',
   width:180,
   height:200,
   renderTo:Ext.getBody(),
   root:{
    text:'树根',
expanded:true, //默认展开根节点
children:[{
text:'节点一',
leaf:true //true说明为叶子节点
},{
text:'节点二',
leaf:true
}]
   }
});
});

</script>
</head>

<body>

</body>
</html>
  • 大小: 6.8 KB
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics