1. #1
    Sencha User
    Join Date
    Dec 2012
    Posts
    16
    Vote Rating
    0
    myavuz is on a distinguished road

      0  

    Default class system

    class system


    I just want to include a view to another view and make it visible when run, however I only encounter a white screen. I could not find the problem.
    More clearly when a define a panel insteadn 'Login' in the main panel it works, but I want to include panel where it has already define outside the main panel and then include. I tried many time but could not achieve it.

    Another question about forum: how will I write code segment in the coding style?

    Here is code

    /////////MAIN PANEL////////

    Ext.define('MyApp.view.MyPanel', {
    extend: 'Ext.panel.Panel',

    height: 430,
    width: 703,
    layout: {
    type: 'absolute'
    },
    title: 'Conference Room',
    views:['Login'],
    initComponent: function() {
    var me = this;

    Ext.applyIf(me, {
    items: [
    {
    xtype: 'combobox',
    x: 450,
    y: 0,
    fieldLabel: 'User Type'
    },
    {
    xtype: 'Login'
    }
    ]
    });

    me.callParent(arguments);
    }

    });




    /////////LOGIN PANEL////////

    Ext.define('MyAjaxApp.view.Login', {
    extend: 'Ext.form.Panel',
    alias : 'widget.Login',
    frame:true,
    x: 0,
    y: 0,
    height: 120,
    width: 270,
    title: 'Login Panel',

    items: [{
    xtype: 'textfield',
    name: 'username',
    fieldLabel: 'Username'
    },{
    xtype: 'textfield',
    name: 'password',
    fieldLabel: 'Password',
    inputType: 'password',
    }],

    buttons: [{
    text: 'Login',
    action: 'login'
    }]
    });

  2. #2
    Sencha User
    Join Date
    Dec 2012
    Posts
    16
    Vote Rating
    0
    myavuz is on a distinguished road

      0  

    Default


    My problem is with require system of the extjs. I do not understand why it is not working.

    It works when I simply define a component and create one instance just under it as below

    Ext.define(MyGrid,{

    }

    Ext.create(MyGrid);


    However I want to define it outside the file in views directory for example
    like
    Ext.define(MyApp.view.MyGrid,{

    }


    and include it file where I want to create one instance.
    I know this is very basic question about the extjs but I used require, view all places but I could noy achieve it.

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi