Results 1 to 2 of 2

Thread: override not compiling and so not working

  1. #1
    Sencha User
    Join Date
    Jul 2017
    Posts
    5

    Default override not compiling and so not working

    hi


    I try to override simple function of classes in Ext.tab.Bar, but in running, after compile name function,back to resume of code outer override code.

    Code:
    Ext.override(Ext.tab.Bar, { 
    
        setActiveTab: function(tab) {  // compile finished here !!
            if (tab.disabled) { 
                return; 
            } 
        }
    });  

  2. #2
    Sencha - Support Team bjdurham85's Avatar
    Join Date
    Mar 2014
    Posts
    962
    Answers
    55

    Default

    The prescribed way to override now is via define (example below) but where are you including the override (i.e in the overrides directory)?

    PHP Code:

    Ext
    .define('MyApp.override.TabBar', {
    override 'Ext.tab.Bar',
    ....

    }); 
    Regards,
    Bryan

Similar Threads

  1. Ext.override not working
    By pbienick in forum Ext JS 6.x Q&A
    Replies: 6
    Last Post: 16 Nov 2015, 12:40 AM
  2. override emptyText is not working
    By SurenderBhyan1 in forum Ext: Discussion
    Replies: 2
    Last Post: 16 Feb 2015, 10:48 AM
  3. Compiling SASS for 2.3 not working
    By kskillett in forum Sencha Touch 2.x: Q&A
    Replies: 2
    Last Post: 14 Jan 2014, 5:19 PM
  4. Compiling SASS for 2.3 not working
    By kskillett in forum Sencha Touch 2.x: Bugs
    Replies: 1
    Last Post: 14 Jan 2014, 2:13 PM
  5. CSS theming and compiling is working but not the css variables
    By Ocelyn in forum Sencha Touch 2.x: Q&A
    Replies: 5
    Last Post: 10 Jul 2012, 8:09 AM

Posting Permissions

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