I want to highlight a par开发者_如何学JAVAticular item after loading the list in sencha. I think we need to do something with the tpl of the list.So how is it possibe?
If you are using Ext.list.ListView
or its parent Ext.DataView
, use getNode()
to get the HTML element that you want to highlight, then highlight it.
Something like:
var node = list.getNode('something');
Ext.fly(node).highlight();
In ExtJS 4.1.1 or newer you can use component method setHighlightedItem(item)
for that purpose.
精彩评论