Extjs4-----布局 layout 详解1-accordion(折叠)
源码:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="../ext-all.js"></script>
<link rel="stylesheet" type="text/css" href="../resources/css/ext-all-debug.css" />
<title>Insert title here</title>
<script type="text/javascript">
Ext.onReady(function(){
//列模型
var userModel = Ext.define('User', {
extend: 'Ext.data.Model',
fields: [
{name: 'firstName', type: 'string'},
{name: 'lastName', type: 'string'},
{name: 'age', type: 'int'},
{name: 'eyeColor', type: 'string'}
]
});
//数据
var data = [
{firstName: 'Ed', lastName: 'Spencer', age:

本文深入探讨了ExtJS4中的Accordion布局,详细解释了如何使用该布局实现折叠面板的效果。通过示例代码展示,当点击面板标题或扩展图标时,折叠面板的交互行为。
最低0.47元/天 解锁文章
91

被折叠的 条评论
为什么被折叠?



