-
10 Feb 2012 9:48 PM #1
overItemCls not applying
overItemCls not applying
Hello
I have created a dataView and Designer genereted this code:
The problem is that the overItemCls is not being applied to the tpl items.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); } });
-
13 Feb 2012 10:17 AM #2
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
Sencha Architect Development Team
-
15 Feb 2012 2:33 PM #3
Bump; you get this working?
Aaron Conran
@aconran
Sencha Architect Development Team
-
15 Feb 2012 2:51 PM #4
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.
-
15 Feb 2012 2:55 PM #5
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
Sencha Architect Development Team
-
15 Feb 2012 3:05 PM #6
Yeah click events are working and selected class is getting applied but not the hover class
Heres my project...
-
15 Feb 2012 3:32 PM #7
Set the trackOver configuration to true on your DataView.
Aaron Conran
@aconran
Sencha Architect Development Team
-
15 Feb 2012 3:38 PM #8
Yeah that was it Thanks!!

