⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dateitem.js

📁 当前比较流行的,漂亮的JS框架,这里面用到的API文档
💻 JS
字号:
/*
 * Ext JS Library 2.0.2
 * Copyright(c) 2006-2008, Ext JS, LLC.
 * licensing@extjs.com
 * 
 * http://extjs.com/license
 */

/** * @class Ext.menu.DateItem * @extends Ext.menu.Adapter * A menu item that wraps the {@link Ext.DatePicker} component. * @constructor * Creates a new DateItem * @param {Object} config Configuration options */Ext.menu.DateItem = function(config){    Ext.menu.DateItem.superclass.constructor.call(this, new Ext.DatePicker(config), config);    /** The Ext.DatePicker object @type Ext.DatePicker */    this.picker = this.component;    this.addEvents('select');        this.picker.on("render", function(picker){        picker.getEl().swallowEvent("click");        picker.container.addClass("x-menu-date-item");    });    this.picker.on("select", this.onSelect, this);};Ext.extend(Ext.menu.DateItem, Ext.menu.Adapter, {    // private    onSelect : function(picker, date){        this.fireEvent("select", this, date, picker);        Ext.menu.DateItem.superclass.handleClick.call(this);    }});

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -