Results 1 to 2 of 2

Thread: Create missing VM or VC

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Create missing VM or VC

    I droped a Panel into my MainView, so I cannot create a ViewController for that Panel.Then I right-clicked the Panel and select "Promote to Class". The Panel went to the Views list,but didnt get his own ViewModel and ViewController. Create missing VM or VC does not work. Is it a bug?

  2. #2
    Sencha MVP Team Member
    Join Date
    Sep 2016
    Location
    Kennewick, WA
    Posts
    150
    Answers
    15

    Default

    If you drop a panel into an existing view it would not be expected to have a viewmodel and viewcontroller created for it. Those would be with the parent in the view. That would not be fun to code against (my opinion).

    Example from what you state "I dropped a Panel into my MainView". So you are expecting a viewmodel and viewcontroller for every panel you drop into your MainView? If that is the case, do you or would you expect a viewmodel and viewcontroller when you drop any component into your MainView?

    Your panel is a component within your view. Names viewcontroller, viewmodel would indicate they belong with a view and not a component. So Architect is working as expected.
    Andy Allord
    Sencha MVP/Software Engineer

Posting Permissions

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