A ViewModel shouldn't have logic like this, a controller should. The issue is, Ext.data.Model doesn't fire events so there isn't a way to listen to events on it. You need to architect your app to work around this, kind of hard to help on that part as I'm not involved in your application.
Thank you for your answer. Handling my case in the view controller is certainly possible. I was thinking about model events because of the architecture schema I saw in the "What's new in Ext JS 5" article: Untitled.jpg
I may misunderstood something (I'm quite new in the Ext JS world) but the grid has a nice "getRowClass" functionality that is called each time a model changed to update the UI. However if I have other UI component in the application binding to the same data I want to make a view model but then I have one component depending on the model and others depending on the view model.
Here's some information about what I try to accomplish:
I have a grid with a master-detail panel. The grid has an action column with a Like and a Dislike button. The style of the buttons are different depending on a "preference" property on the model. For this I'm using the getClass support on the action column and each time the model preference changed the buttons style change automatically.
In the detail pane I also have the same two button. I have a view model for this. If the user click a button in the grid I want my panel to update. My first idea was to listen prefence change in the view model to update the UI but I can't do this. Sure I can have a view controller to inform the pane something happens but it would be nice to leverage the model here.
Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."