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();

  • 相关阅读:
    第三部分:填写志愿的思路
    第二部分:志愿录取标准
    2017年浙江省高考志愿、录取闪电入门系列 目录
    七、程序包
    五、过程式编程和调试技巧
    四、表达式的计算
    三、函数与递归
    二、表操作
    一、MMA概述
    Java面向对象
  • 原文地址:https://www.cnblogs.com/liaomin416100569/p/9331974.html
Copyright © 2011-2022 走看看