1. #1
    Ext JS Premium Member tvanzoelen's Avatar
    Join Date
    Apr 2008
    Location
    Groningen - Netherlands
    Posts
    1,118
    Vote Rating
    30
    tvanzoelen has a spectacular aura about tvanzoelen has a spectacular aura about tvanzoelen has a spectacular aura about

      0  

    Default Paste event

    Paste event


    Somebody knows where I can find the paste event for text fields in 4.1?

  2. #2
    Ext JS Premium Member tvanzoelen's Avatar
    Join Date
    Apr 2008
    Location
    Groningen - Netherlands
    Posts
    1,118
    Vote Rating
    30
    tvanzoelen has a spectacular aura about tvanzoelen has a spectacular aura about tvanzoelen has a spectacular aura about

      0  

    Default


    Ok delete this thread, found it.

    Code:
    component.getEl().on('paste', function(t, e) {
     
    }, component);

  3. #3
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,508
    Vote Rating
    56
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    Or as part of the configured listeners:

    Code:
    {
        xtype: 'text',
        listeners: {
            paste: {
                element: 'inputEl',
                fn: function(event, inputEl) {
                }
            }
        }
    }

  4. #4
    Sencha User
    Join Date
    Jan 2014
    Posts
    1
    Vote Rating
    0
    vikramk is on a distinguished road

      0  

    Default Paste Event EXTJS

    Paste Event EXTJS


    I am handling the paste event as below on text field. How can I get the text which is pasted on text box so that I will know whether, user has entered multiline or single line text, please help...

    listeners : { paste: {
    element: 'inputEl',
    fn: function(event, inputEl,obj) {
    if(event.type == "paste"){
    console.log('vikram paste event is fired:'+ obj.getElement('mytxt1')); }
    }
    }
    },

Thread Participants: 2