1. #11
    Sencha User wemerson.januario's Avatar
    Join Date
    Nov 2008
    Location
    Brazil, Goias, Goiânia
    Posts
    372
    Vote Rating
    4
    wemerson.januario is on a distinguished road

      0  

    Default It works

    It works


    Thanks I could make it work now defining getGlyph().
    Is there any feature request to add getGlyph method for next release?
    Thanks!
    Wemerson Januario
    Skype:
    wemerson.januario
    Email: wemerson.januario@gmail.com
    Fone:
    62 84101145 - Goiânia-GO- Brazil
    Consulting and Training Ext JS
    Projects: (Nubes ERP)

  2. #12
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    35,677
    Vote Rating
    749
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Quote Originally Posted by wemerson.januario View Post
    Thanks I could make it work now defining getGlyph().
    Is there any feature request to add getGlyph method for next release?
    Thanks!
    Glad it worked for you. About the next release, it's something I can attempt to get in yes
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #13
    Sencha User wemerson.januario's Avatar
    Join Date
    Nov 2008
    Location
    Brazil, Goias, Goiânia
    Posts
    372
    Vote Rating
    4
    wemerson.januario is on a distinguished road

      0  

    Default


    Quote Originally Posted by mitchellsimoens View Post
    This is one I'm using for Fiddle:

    Code:
    Ext.define('Override.grid.column.Action', {
        override : 'Ext.grid.column.Action',
    
        iconTpl : '<tpl for=".">' +
            '<tpl if="glyph">' +
                '<div class="{cls}" style="font-family:{glyphFamily}; font-size:13px; line-height: 15px;"<tpl if="tooltip"> data-qtip="{tooltip}"</tpl>>&#{glyph};</div>' +
            '<tpl else>' +
                '<img role="button" alt="{alt}" class="{cls}"<tpl if="tooltip"> data-qtip="{tooltip}"</tpl> />' +
            '</tpl>' +
        '</tpl>',
    
        defaultRenderer : function(v, meta, record, rowIdx, colIdx, store, view) {
            var me            = this,
                prefix        = Ext.baseCSSPrefix,
                scope         = me.origScope || me,
                items         = me.items,
                altText       = me.altText,
                disableAction = me.disableAction,
                enableAction  = me.enableAction,
                iconCls       = me.iconCls,
                len           = items.length,
                i             = 0,
                iconTpl       = new Ext.XTemplate(me.iconTpl),
                datas         = [],
                item, itemScope, ret, disabled, tooltip, glyph, cls, data;
    
            // Allow a configured renderer to create initial value (And set the other values in the "metadata" argument!)
            // Assign a new variable here, since if we modify "v" it will also modify the arguments collection, meaning
            // we will pass an incorrect value to getClass/getTip
            ret = Ext.isFunction(me.origRenderer) ? me.origRenderer.apply(scope, arguments) || '' : '';
    
            meta.tdCls += ' ' + Ext.baseCSSPrefix + 'action-col-cell';
    
            for (; i < len; i++) {
                item      = items[i];
                itemScope = item.scope || scope;
                disabled  = item.disabled || (item.isDisabled ? item.isDisabled.call(itemScope, view, rowIdx, colIdx, item, record) : false);
                tooltip   = disabled ? null : (item.tooltip || (item.getTip ? item.getTip.apply(itemScope, arguments) : null));
                glyph     = item.glyph || item.getGlyph;
                cls       = Ext.String.trim(prefix + 'action-col-icon ' + prefix + 'action-col-' + String(i) + ' ' + (disabled ? prefix + 'item-disabled' : ' ') + ' ' + (Ext.isFunction(item.getClass) ? item.getClass.apply(itemScope, arguments) : (item.iconCls || iconCls || '')));
                data      = {
                    cls     : cls,
                    tooltip : tooltip
                };
    
                // Only process the item action setup once.
                if (!item.hasActionConfiguration) {
                    // Apply our documented default to all items
                    item.stopSelection          = me.stopSelection;
                    item.disable                = Ext.Function.bind(disableAction, me, [i], 0);
                    item.enable                 = Ext.Function.bind(enableAction, me, [i], 0);
                    item.hasActionConfiguration = true;
                }
    
                if (glyph) {
                    if (Ext.isFunction(glyph)) {
                        glyph = glyph.call(itemScope, view, rowIdx, colIdx, item, record);
                    }
    
                    if (glyph) {
                        glyph = glyph.split('@');
    
                        data.glyph       = glyph[0];
                        data.glyphFamily = glyph[1];
                    } else {
                        data = false;
                    }
                } else {
                    data.alt = item.altText || altText;
                    data.src = item.icon || Ext.BLANK_IMAGE_URL;
                }
    
                data && datas.push(data);
            }
    
            len && (ret += iconTpl.apply(datas));
    
            return ret;
        }
    });
    this seems to not work on firefox. I get error TypeError: Ext.FocusManager is undefined
    Wemerson Januario
    Skype:
    wemerson.januario
    Email: wemerson.januario@gmail.com
    Fone:
    62 84101145 - Goiânia-GO- Brazil
    Consulting and Training Ext JS
    Projects: (Nubes ERP)

  4. #14
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    35,677
    Vote Rating
    749
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Quote Originally Posted by wemerson.januario View Post
    this seems to not work on firefox. I get error TypeError: Ext.FocusManager is undefined
    It's working fine for me in Fiddle. Maybe something within your app?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

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