Advertisement
Guest User

Untitled

a guest
Apr 16th, 2014
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. var templ = new Ext.XTemplate(
  2. '<tpl if="isActive">',
  3. '<div style="color:red" class="',
  4. Ext.baseCSSPrefix + 'list-sortablehandle',
  5. '">',
  6. '</tpl>',
  7. '<b>Name: {text}</b>',
  8. '<tpl if="isActive">',
  9. '<b>{text}</b></div>',
  10. '</tpl>',
  11. {
  12. // XTemplate configuration:
  13. compiled: true,
  14. // member functions:
  15. isitem2: function (name) {
  16. return name == 'item2';
  17. },
  18. }
  19. );
  20.  
  21. var targetItem = list.getItemAt(targetIndex);
  22.  
  23. targetItem.down('.x-list-sortablehandle')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement