Results 1 to 3 of 3

Thread: Should classic views be visible to MainController?

  1. #1
    Sencha Premium User
    Join Date
    Feb 2015
    Posts
    25
    Answers
    2

    Default Answered: Should classic views be visible to MainController?

    I'm building a Universal app using ExtJS 6.0.1, using Jetbrains PHPstorm w/ the IDE plugin 6.0.4. I'm attempting to create a simple handler on a button on the main List view that launches a Window w/ embedded form. On the app/view/main/MainController.js i have defined the listener as follows:

    Code:
    showAddUserForm: function() {
            var win = Ext.create();
            win.show();
     },
    When I use ctl+space in the Ext.create method above, I do not see my DDIguru.view.main.AddUserForm.js in the dropdown. This class is stored in the classic/src/view/main path. Shouldn't I be able to "see" that class?

  2. The plugin will only complete toolkit classes from within the src directory corresponding to that toolkit. If your controller were in classic/src, you'd see your view in the completion list. We generally recommend decoupling your shared code in app from classes in either toolkit.

  3. #2
    Sencha Premium User
    Join Date
    Feb 2015
    Posts
    25
    Answers
    2

    Default

    I'm able to use the
    Code:
    //noinspection UnknownClassInspection
    facility just above my Ext.create() call and it works just fine. It just seems to me that ctl+space should reveal classes in either classic or modern from within a shared MainController.js file. Let me know if i'm off base here.

  4. #3
    Sencha User Mark.Brocato's Avatar
    Join Date
    Mar 2015
    Location
    Maryland
    Posts
    482
    Answers
    114

    Default

    The plugin will only complete toolkit classes from within the src directory corresponding to that toolkit. If your controller were in classic/src, you'd see your view in the completion list. We generally recommend decoupling your shared code in app from classes in either toolkit.

Similar Threads

  1. Replies: 10
    Last Post: 30 Sep 2015, 11:09 AM
  2. Replies: 3
    Last Post: 23 Apr 2015, 11:16 AM
  3. SenchaApp views navigation. Reuse views.
    By bp1 in forum Sencha Touch 2.x: Q&A
    Replies: 1
    Last Post: 19 May 2014, 2:42 PM
  4. [INFOREQ] getController('framework.controller.MainController') also not work in Beta 2
    By aaronchen2k in forum Sencha Touch 2.x: Bugs
    Replies: 11
    Last Post: 20 Feb 2012, 10:15 PM
  5. Separation between master page views and content views
    By nagamalli in forum Ext: Discussion
    Replies: 1
    Last Post: 26 Oct 2011, 6:25 PM

Posting Permissions

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