Results 1 to 3 of 3

Thread: How to listen ViewModel properties changes?

  1. #1
    Sencha User
    Join Date
    Jun 2014
    Location
    Murmansk, Russia
    Posts
    273
    Answers
    3

    Default Answered: How to listen ViewModel properties changes?

    Generally view model provides something like OnPropertyChanged event, but Ext.app.ViewModel does not provide any events at all. It there a way to listen to Ext.app.ViewModel properties changes?

  2. Use the bind method: http://docs.sencha.com/extjs/5.0.0/a...el-method-bind

    There are lots of examples in the introductory docs.

  3. #2
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,257
    Answers
    759

    Default

    Use the bind method: http://docs.sencha.com/extjs/5.0.0/a...el-method-bind

    There are lots of examples in the introductory docs.
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

  4. #3
    Sencha User
    Join Date
    Jun 2014
    Location
    Murmansk, Russia
    Posts
    273
    Answers
    3

    Default

    Great! Thank you a lot!

Posting Permissions

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