Ext ComboBox 페이지가 너무 길어서 일부 삭제 (1)

2524 단어 ext
Ext.ns("Ext.wv");		// , ;

//  ;
Ext.wv.ComboPagingToolbar = Ext.extend(Ext.PagingToolbar, {
	//  onRender
	onRender : function(ct, position) {
		Ext.PagingToolbar.superclass.onRender.call(this, ct, position);
		this.first = this.addButton({
					tooltip : this.firstText,
					iconCls : "x-tbar-page-first",
					disabled : true,
					handler : this.onClick.createDelegate(this,
							["first"])
				});
		this.prev = this.addButton({
					tooltip : this.prevText,
					iconCls : "x-tbar-page-prev",
					disabled : true,
					handler : this.onClick.createDelegate(this,
							["prev"])
				});

		// /this.addSeparator();

		// this.add(this.beforePageText);
		this.field = Ext.get(this.addDom({
					tag : "input",
					type : "text",
					size : "3",
					value : "1",
					cls : "x-tbar-page-number"
				}).el);
		this.field.on("keydown", this.onPagingKeydown, this);
		this.field.on("focus", function() {
					this.dom.select();
				});
		this.afterTextEl = this.addText(String.format(
				this.afterPageText, 1));
		this.field.setHeight(18);
		this.field.setWidth(0); // // input
		this.afterTextEl.hide(); //  ;

		// this.addSeparator();

		this.next = this.addButton({
					tooltip : this.nextText,
					iconCls : "x-tbar-page-next",
					disabled : true,
					handler : this.onClick.createDelegate(this,
							["next"])
				});
		this.last = this.addButton({
					tooltip : this.lastText,
					iconCls : "x-tbar-page-last",
					disabled : true,
					handler : this.onClick.createDelegate(this,
							["last"])
				});

		// this.addSeparator();

		this.loading = this.addButton({
					tooltip : this.refreshText,
					iconCls : "x-tbar-loading",
					handler : this.onClick.createDelegate(this,
							["refresh"])
				});

		if (this.displayInfo) {
			this.displayEl = Ext.fly(this.el.dom).createChild({
						cls : 'x-paging-info'
					});
		}
		if (this.dsLoaded) {
			this.onLoad.apply(this, this.dsLoaded);
		}
	}
});

좋은 웹페이지 즐겨찾기