Results 1 to 4 of 4

Thread: ExtJS 6 MVC app control flow

  1. #1

    Default ExtJS 6 MVC app control flow

    In the given example below i want to know how the control shifts to PopupForm when clicked on onPopupForm function:
    https://fiddle.sencha.com/#fiddle/1dma&view/editor

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    Are you asking why adding the popupform to the viewport gives the focus to the popupform?

  3. #3

    Default

    Quote Originally Posted by Gary Schlosberg View Post
    Are you asking why adding the popupform to the viewport gives the focus to the popupform?
    My question is inside the onPopupForm function how does the program know to include the PopupForm class defined at the starting of the program(second class from the starting of the code).

    https://fiddle.sencha.com/#fiddle/1dma&view/editor

  4. #4
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    The framework uses the xtype to know. The PopupForm class has the 'popupform' xtype configured, and the onPopupForm function references that xtype when it adds the component to the viewport.

Similar Threads

  1. Sencha - Flow of Control
    By kmiklas in forum Sencha Touch 2.x: Q&A
    Replies: 1
    Last Post: 30 Aug 2015, 3:08 PM
  2. Grid control with ExtJS
    By ikariusrb in forum Ext: Q&A
    Replies: 2
    Last Post: 22 Jul 2014, 2:52 PM
  3. Extjs 4 based flow chart component
    By ffzhuang in forum Community Discussion
    Replies: 9
    Last Post: 29 Jun 2011, 7:10 PM
  4. Using sync() response to control code flow
    By hoitomt in forum Sencha Touch 1.x: Discussion
    Replies: 0
    Last Post: 22 Feb 2011, 8:57 AM
  5. EXTJS Flow/Editor
    By DaviBaldin in forum Community Discussion
    Replies: 0
    Last Post: 8 Nov 2010, 1:11 AM

Tags for this Thread

Posting Permissions

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