Results 1 to 6 of 6

Thread: Why doesn't this listener work?

  1. #1
    Sencha Premium Member
    Join Date
    Dec 2014
    Posts
    121
    Answers
    3

    Default Answered: Why doesn't this listener work?

    For some reason, the event listener is not working in my viewcontroller. I'm new to MVVM so it's possible I am overlooking something. I looked in a couple of demo apps bundled with Ext JS but didn't see anything different.

    This has been tested on the latest Chrome on Mac OS with Ext JS 6.0.1.

    https://fiddle.sencha.com/#fiddle/102u

  2. Hi--

    I think you're looking for the listen or control configs:

    http://docs.sencha.com/extjs/6.0/6.0...ler-cfg-listen
    http://docs.sencha.com/extjs/6.0/6.0...er-cfg-control

    Although, you could just add the listener to the textfield itself as well:

    https://fiddle.sencha.com/#fiddle/1033

    Thanks!
    Joel

  3. #2
    Sencha User
    Join Date
    Nov 2014
    Posts
    3,120
    Answers
    446

    Default

    Hi--

    I think you're looking for the listen or control configs:

    http://docs.sencha.com/extjs/6.0/6.0...ler-cfg-listen
    http://docs.sencha.com/extjs/6.0/6.0...er-cfg-control

    Although, you could just add the listener to the textfield itself as well:

    https://fiddle.sencha.com/#fiddle/1033

    Thanks!
    Joel

  4. #3
    Sencha Premium Member
    Join Date
    Dec 2014
    Posts
    121
    Answers
    3

    Default

    thank you. the fiddle demo you sent worked. Why didn't 'listeners' work, out of curiosity?

  5. #4
    Sencha User
    Join Date
    Nov 2014
    Posts
    3,120
    Answers
    446

    Default

    That would be for listeners for events on the controller itself.

    Thanks
    Joel

  6. #5
    Sencha Premium Member
    Join Date
    Dec 2014
    Posts
    121
    Answers
    3

    Default

    doh. well that was an easy one. lol. had too much going on this morning. Thanks for helping me out!

  7. #6
    Sencha User
    Join Date
    Nov 2014
    Posts
    3,120
    Answers
    446

    Default

    Quote Originally Posted by swdev519 View Post
    doh. well that was an easy one. lol. had too much going on this morning. Thanks for helping me out!
    Sure thing, happy to help!

    Thanks!
    Joel

Similar Threads

  1. Listener '> field' doesn't work?
    By Notepad123 in forum Sencha Touch 2.x: Q&A
    Replies: 1
    Last Post: 11 May 2015, 7:40 AM
  2. Replies: 1
    Last Post: 24 Mar 2014, 12:23 PM
  3. Listener on datepicker doesn't work, neither does value setting
    By celwell in forum Sencha Touch 2.x: Q&A
    Replies: 4
    Last Post: 26 May 2012, 8:18 PM
  4. Ext.tree.Panel onDragOver listener doesn't work
    By timTaylor in forum Ext: Q&A
    Replies: 3
    Last Post: 4 Apr 2012, 5:10 AM
  5. Listener on radiobutton doesn't work properly.
    By marxan in forum Ext 3.x: Help & Discussion
    Replies: 4
    Last Post: 30 Nov 2010, 8:04 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •