Results 1 to 2 of 2

Thread: What is xtype: 'app-main'

  1. #1
    Sencha Premium User
    Join Date
    Mar 2013
    Posts
    3

    Default What is xtype: 'app-main'

    I'm very new to Ext JS. I went through the Getting Started page (http://docs.sencha.com/extjs/6.2.0/g...g_started.html) which results in a simple tabbed app. Now all I want to do is look at the code and compare it to the API (http://docs.sencha.com/extjs/6.0.2/c...tab.Panel.html) so I can see what's what and play with settings. But I cannot find anything in the API for xtype 'app.main'. Is this just a made up xtype to represent the entire app? Does it have any meaning or significance? Thanks! Below is the code snippet for the Getting Started app I'm talking about...

    Code:
    /**
     * This class is the main view for the application. It is specified in app.js as the
     * "mainView" property. That setting automatically applies the "viewport"
     * plugin causing this view to become the body element (i.e., the viewport).
     *
     * TODO - Replace this content of this view to suite the needs of your application.
     */
    Ext.define('MyApp01.view.main.Main', {
        extend: 'Ext.tab.Panel',
        xtype: 'app-main',
    
    
        requires: [
            'Ext.plugin.Viewport',
            'Ext.window.MessageBox',
    
    
            'MyApp01.view.main.MainController',
            'MyApp01.view.main.MainModel',
            'MyApp01.view.main.List'
        ],
    
    
        controller: 'main',
        viewModel: 'main',
    .....

  2. #2
    Sencha Premium User
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,258
    Answers
    759

    Default

    s this just a made up xtype to represent the entire app?
    Yes.

    Does it have any meaning or significance?
    Not really, just a default name.

Similar Threads

  1. Replies: 5
    Last Post: 20 Dec 2014, 12:16 PM
  2. Passing title to xtype when setting up items in main view?
    By studiobrain in forum Sencha Touch 2.x: Q&A
    Replies: 1
    Last Post: 11 Dec 2013, 7:36 PM
  3. [CLOSED] Cannot set xtype of main container (Win7 / Touch)
    By scottd in forum Sencha Architect 2.x: Bugs
    Replies: 8
    Last Post: 30 Apr 2013, 8:18 AM
  4. Calling chart xtype in the Main page
    By Jsri in forum Sencha Touch 2.x: Q&A
    Replies: 1
    Last Post: 22 Nov 2012, 4:39 AM
  5. Replies: 5
    Last Post: 10 Jul 2012, 3:43 PM

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
  •