zoukankan      html  css  js  c++  java
  • Extjs常用的控件

    var reportCategory = new Ext.form.ComboBox({
            fieldLabel: '报表类型',
            hiddenName:'reportCategory1',
            store: new Ext.data.SimpleStore({
                fields: ['num', 'name'],
                data : [[1,'年报表'],[2,'月报表'],[3,'日报表']]
            }),
            valueField:'num',
            displayField:'name',
            typeAhead: true,
            mode: 'local',
            triggerAction: 'all',
            emptyText:'请选择...',
            selectOnFocus:true,
            120
        });


    var dtYear = new Ext.form.NumberField({
            fieldLabel:'年',
            name:'dtYear1',
            allowBlank:false,
            allowDecimals:false,
            allowNegative:false,
            value:2008,
            minValue:2000,
            maxValue:2100,
            selectOnFocus:true,
            validationEvent:false,
            120
        });

    var dtDay = new Ext.form.DateField({
            fieldLabel: '日期',
            name: 'dtDay1',
            120,
            validationEvent:false,
            allowBlank:false
        });

    var fs = new Ext.form.FormPanel({
            frame: true,
            labelAlign: 'right',
            labelWidth: 60,
            autoHeight:true,
            autoWidth:true,
            onSubmit: Ext.emptyFn,
            submit: function(){
                this.getEl().dom.method='POST';
                this.getEl().dom.action='search.jsp';
                this.getEl().dom.submit();
            },
            waitMsgTarget: true,
            items: reportCategory
        });

    比如fs需要提交的话 可以这样

        fs.getForm().submit();

  • 相关阅读:
    IServiceBehavior, IOperationBehavior,IParameterInspector
    System.IO.Pipelines——高性能IO(三)
    System.IO.Pipelines——高性能IO(二)
    System.IO.Pipelines——高性能IO(一)
    背包问题 —— 四种解法解题
    波音,自动驾驶bug未修复,致346人丧生!5个月内两次坠毁!其中,包括8名中国公民
    2018年Java生态行业报告
    为什么大公司一定要使用DevOps?
    设计微服务的最佳实践
    Spring Boot面试题
  • 原文地址:https://www.cnblogs.com/liaomin416100569/p/9331975.html
Copyright © 2011-2022 走看看