1. #1
    Sencha Premium Member MichaelOstrovsky's Avatar
    Join Date
    May 2008
    Location
    Tel Aviv, Israel
    Posts
    134
    Vote Rating
    6
    MichaelOstrovsky is on a distinguished road

      0  

    Default Add component class names to html

    Add component class names to html


    Add component class names into components main element (as an attribute).
    Very handy when inspecting/searching applications html dom tree.

    Code:
    Ext.define('override.Ext.Component', {
        override: 'Ext.Component',
        getElConfig: function () {
    
    
            // Add component class names into components main element (as an attribute).
            // Done before the component is rendered for efficiency.
            // used only for debugging. Don't expose in production.
            //<debug>
            if (!this.autoEl) this.autoEl = {};
            if (Ext.isObject(this.autoEl)) this.autoEl.classname = Ext.getClassName(this);
            //</debug>
    
    
            return this.callParent(arguments);
        },
    });
    Michael.

  2. #2
    Sencha - Support Team
    Join Date
    Feb 2013
    Location
    California
    Posts
    2,468
    Vote Rating
    52
    Gary Schlosberg has a spectacular aura about Gary Schlosberg has a spectacular aura about Gary Schlosberg has a spectacular aura about

      0  

    Default


    Looks cool. Thanks for sharing this with the community!
    Are you a Sencha products veteran who has wondered what it might be like to work at Sencha? If so, please reach out to our recruiting manager: sheryl@sencha.com

Thread Participants: 1

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar