Explain MVC architecture of extjs

前端 未结 2 1229
悲哀的现实
悲哀的现实 2021-02-20 12:20

I created a small sudoku app using Javascript. Now I am trying to convert that javascript code into extjs (4.1.1a) code. I have gone through the docs to understand the

2条回答
  •  隐瞒了意图╮
    2021-02-20 13:10

    From all that I know of your app I can say nearly nothing. You have a really specific view with some listeners and actions where none should bother a controller.

    A controller would create the container as view and may pass some config options to it without bothering much about the other nested panels. The controller may also listen to events of this container like a button that ends the game or save the game.

    MVC doesn't mean that you would relay all events and logic into the controller.

    Even if this is in your opinion rather complex it is still just a view.

提交回复
热议问题