`

ExtJS4 API

阅读更多
1
Ext.util.HashMap
Ext.util.MixedCollection
用法的区别?适用场景?

排序:HashMap 无序    MixedCollection 有序
过滤:HashMap 不支持  MixedCollection 支持
事件:HashMap 支持    MixedCollection 支持

2
Ext.ComponentQuery
DOMQuery


组件查询:
CSS风格选择符:
.xtype
#id 或 #itemId
[attrName=attrValue]
{isDisabled()} : {成员表达式}
#myCt > panel : 直接子组件
...

DOM查询:
元素选择器:
* 任何元素
E HTML标签
E F 祖先节点为E的F节点
E > F or E/F 父节点为E的F节点
E + F 前一个兄弟节点为E的F节点
E ~ F 前面兄弟节点包含E的F节点

属性选择器:
E[foo]     存在
E[foo=bar]   等于
E[foo^=bar]  始于bar
E[foo$=bar]  终于bar
E[foo*=bar]  包含bar
E[foo%=2]   偶节点
E[foo!=bar]  不等于

伪类选择符:
E:first-child E is the first child of its parent
E:last-child E is the last child of its parent
E:nth-child(n) E is the nth child of its parent (1 based as per the spec)
E:nth-child(odd) E is an odd child of its parent
E:nth-child(even) E is an even child of its parent
E:only-child E is the only child of its parent
E:checked
E:first the first E in the resultset
E:last the last E in the resultset
E:nth(n) the nth E in the resultset (1 based)
E:odd shortcut for :nth-child(odd)
E:even shortcut for :nth-child(even)
E:contains(foo) E's innerHTML contains the substring "foo"
E:nodeValue(foo) E contains a textNode with a nodeValue that equals "foo"
E:not(S) an E element that does not match simple selector S
E:has(S) an E element that has a descendent that matches simple selector S
E:next(S) an E element whose next sibling matches simple selector S
E:prev(S) an E element whose previous sibling matches simple selector S
E:any(S1|S2|S2) an E element which matches any of the simple selectors S1, S2 or S3//\\

CSS 样式选择符:

E{display=none}
E{display^=none}
E{display$=none}
E{display*=none}
E{display%=2}
E{display!=none}

3.
Ext.Template
Ext.XTemplate

4
Ext.Ajax
Ext.Action

5.
Ext.AbstractComponent
Ext.container.AbstractContainer
Ext.panel.AbstractPanel
Ext.view.AbstractView
Ext.layout.Layout
Ext.data.AbstractStore
Ext.data.Model
Ext.data.proxy.Proxy

6.
Ext.app.Controller
Ext.app.Application
Ext.Loader

7.
类模板
Ext.define('Ext.ux.ClassTpl', {
	mixins: {
        observable: 'Ext.util.Observable'
    },
    
    // 定义类构造器
	constructor : function(config) {
		var me = this, config = config || {};
		
		// 1. 注册事件
		me.addEvents(
	            /**
	             * @event add
	             */
	            'add');
		
		// 织入事件处理功能
		me.mixins.observable.constructor.call(me, config);
		
		// 复制父类 Ext.Base属性
		me.callParent([config]);
	},
	
	// 定义方法
    add: function() {
        var me = this;
        
        // 2. 触发事件
        me.fireEvent('add', me);
        return;
    }
})


8.
...

分享到:
评论

相关推荐

    ExtJs 4 API中文

    ExtJs 4 API 中文

    Extjs 4 API

    Ext JS 4是迄今为止我们曾经对Extjs JS最大的修改,构成最先进的JavaScript框架。几乎每一个区域的结构都已经升级,从生成的HTML的系统。我们已经统一的api,增添了不可思议的新功能,提高了整体架构的性能。 在Ext JS...

    Extjs4 API

    很全的Extjs4文档,各空件的属性、方法及例子都在,直接点击index.html,不用部署。

    extjs4 中文 API

    extjs4 中文 API

    ExtJs4官方的api文档及示例

    很实用的示例及文档。版本为4.1,对初学者以及开发人员很有帮助。 很实用的示例及文档。版本为4.1,对初学者以及开发人员很有帮助。

    Extjs4+API.rar

    Extjs4+API.rar

    Extjs4API文档阅读(三)——布局和容器[参照].pdf

    Extjs4API文档阅读(三)——布局和容器[参照].pdf

    extjs4 最新中文API

    最新的extjs4 中文api,学习者的好帮手。

    extjs 中文 api chm格式的

    extjs 中文 api chm格式的!可以跟好的帮助你学习富客户端技术!!!!!!

    extjs四个例子,一个中文API

    新手学习,初学extjs时用刚刚好,里边有三个例子,还有一个我自己写的例子(简单粗暴动态菜单),还有一个中文API

    Extjs4 api

    解压文件 打开Ext.html 即可使用

    extjs4 api

    extjs4 全面详细的api 中文版。

    Extjs 中文API文档

    Extjs 中文API文档,有对Extjs相关API的中文说明

    ExtJS4.0-API.rar

    ExtJS4.0-API Ext4.0-API Ext4 ExtJS4 API 学EXTJS4的好东西...

    ExtJS4中文教程2 开发笔记 chm

    Extjs4 API文档阅读(一)——类系统(Class System) Extjs4 API文档阅读(三)——布局和容器 Extjs4 API文档阅读(二)——MVC构架(上) Extjs4 API文档阅读(二)——MVC构架(下) Extjs4 API文档阅读(四)——Data ...

    ExtJS4.x中文API

    extjs4.x中文api 实用比较方便 。

    Extjs4 API文档阅读(三)——布局和容器

    extjs4.0 布局和容器(Layouts and Containers)是 Ext JS 中最强大的部分之一。它负责控制你应用程序中每个组件的尺寸和定位。

    Extjs4 API文档阅读(二)——MVC构架(上)

    对于 extjs 来说,大客户端程序一直很难写,当你为大客户端程序添加更多的功能和项目的时候,项目的体积往往迅速增长。...织和维持 ,所以,extjs4 配备了一个新的应用程序体系结构,它能结构化你的代码,那就是 extjs4 MVC。

    Extjs4 API文档阅读(二)——MVC构架(下)

    对于 extjs 来说,大客户端程序一直很难写,当你为大客户端程序添加更多的功能和项目的时候,项目的体积往往迅速增长。...织和维持 ,所以,extjs4 配备了一个新的应用程序体系结构,它能结构化你的代码,那就是 extjs4 MVC。

Global site tag (gtag.js) - Google Analytics