Results 1 to 8 of 8

Thread: overItemCls not applying

  1. #1
    Touch Premium Member
    Join Date
    Jul 2011
    Location
    Cuernavaca, Mexico
    Posts
    53
    Vote Rating
    1
      0  

    Default overItemCls not applying

    Hello
    I have created a dataView and Designer genereted this code:

    Code:
    Ext.define('ER.view.ui.MyView1', {
        extend: 'Ext.view.View',
    
        id: 'navGiros',
        itemCls: 'navGiro-list',
        itemSelector: '.navGiro-list-item',
        overItemCls: 'navGiro-list-item-hover',
        store: 'navGiros',
    
        initComponent: function() {
            var me = this;
    
            Ext.applyIf(me, {
                tpl: [
                    '<tpl for=".">',
                    '<div class="navGiro-list-item">',
                    '{menuItem}',
                    '</div>',
                    '</tpl>'
                ]
            });
    
            me.callParent(arguments);
        }
    
    });
    The problem is that the overItemCls is not being applied to the tpl items.

  2. #2
    Sencha User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,487
    Vote Rating
    146
      0  

    Default

    Hrm, the code looks correct without running it.

    Do you have more than one instances of this view? I notice that you have an id which could cause a collision.
    Aaron Conran
    @aconran

  3. #3
    Sencha User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,487
    Vote Rating
    146
      0  

    Default

    Bump; you get this working?
    Aaron Conran
    @aconran

  4. #4
    Touch Premium Member
    Join Date
    Jul 2011
    Location
    Cuernavaca, Mexico
    Posts
    53
    Vote Rating
    1
      0  

    Default

    No not yet...
    Even though I only have one instance of the I removed the id config and the problem still persists.

    I also generated a new project and still doesn`t seem to change the hover class.

  5. #5
    Sencha User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,487
    Vote Rating
    146
      0  

    Default

    Are things like click events etc working?

    Do you have a sample project you'd be willing to share with us to troubleshoot?
    Aaron Conran
    @aconran

  6. #6
    Touch Premium Member
    Join Date
    Jul 2011
    Location
    Cuernavaca, Mexico
    Posts
    53
    Vote Rating
    1
      0  

    Default

    Yeah click events are working and selected class is getting applied but not the hover class

    Heres my project...
    Attached Files Attached Files

  7. #7
    Sencha User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,487
    Vote Rating
    146
      0  

    Default

    Set the trackOver configuration to true on your DataView.
    Aaron Conran
    @aconran

  8. #8
    Touch Premium Member
    Join Date
    Jul 2011
    Location
    Cuernavaca, Mexico
    Posts
    53
    Vote Rating
    1
      0  

    Default

    Yeah that was it Thanks!!

Tags for this Thread

Posting Permissions

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