zoukankan      html  css  js  c++  java
  • ExtJS4 带清除功能的文本框 triggerfield

     Ext.onReady(function () {
                Ext.create('Ext.form.FormPanel', {
                    title: 'Form with TriggerField',
                    bodyPadding: 5,
                     350,
                    renderTo: Ext.getBody(),
                    items: [{
                        xtype: 'triggerfield',
                        selectOnFocus: true,
                        fieldLabel: 'Sample Trigger',
                        trigger1Cls: 'x-form-clear-trigger',
                        trigger2Cls: 'x-form-search-trigger',
                        onTrigger1Click: function () {
                            this.setValue('');
                        },
                        onTrigger2Click: function () {
                            Ext.Msg.alert('Status', 'You clicked search!');
                        }
                    }]
                });
            });
  • 相关阅读:
    Grails
    Grails
    Grails
    Grails
    Grails
    Grails
    PG
    TopShelf安装多实例
    Js 实现自定义事件
    HttpContext未null处理
  • 原文地址:https://www.cnblogs.com/wangjunwei/p/3296050.html
Copyright © 2011-2022 走看看