1. #1
    Sencha User
    Join Date
    Jan 2013
    Posts
    42
    Vote Rating
    0
    HugoTrigo is on a distinguished road

      0  

    Default Answered: Navigation View Error : Object is not a function

    Answered: Navigation View Error : Object is not a function


    Hi,

    I am creating an application controller to click on the list item and it works perfectly, giving a warning that came in, but when I try to browse the navigationview it gives me error console in your browser!


    Anyone know what's going on?

    Code:

    Code:
    Ext.define('Vive.controller.Main', {    extend: 'Ext.app.Controller',
        alias: 'controller.main',
    
    
        config: {
            refs: {
                list: '#list',
                listNav: '#listNav'
            },
    
    
            control: {
                "#list": {
                    itemtap: 'onListItemTap'
                }
            }
        },
    
    
        onListItemTap: function(dataview, index, target, record, e, eOpts) {
            alert('ENTREI');
    
    
            var me = this;
    
    
            var teste = Ext.create('Ext.panel', {
                html: 'Teste'
            });
    
    
            me.getListNav().push(teste);
        }
    
    
    });
    Error:

    Uncaught TypeError: object is not a functionapp.html:2


    Thanks!

    Best Regards,
    Hugo Trigo

  2. Try to change it to Ext.Panel

  3. #2
    Sencha User
    Join Date
    Dec 2012
    Posts
    30
    Answers
    3
    Vote Rating
    0
    Isnogud is on a distinguished road

      0  

    Default


    Try to change it to Ext.Panel

  4. #3
    Sencha User
    Join Date
    Jan 2013
    Posts
    42
    Vote Rating
    0
    HugoTrigo is on a distinguished road

      0  

    Default


    Really had the small 'p', changed to capital "P" and now it works!

    Thanks!

    Best Regards,
    Hugo Trigo