PageRenderTime 30ms CodeModel.GetById 27ms RepoModel.GetById 0ms app.codeStats 0ms

/javascript-mode/extjs_ndataview

http://github.com/ridgetang/snippets
#! | 21 lines | 21 code | 0 blank | 0 comment | 0 complexity | 56ea87762fc5c232cc6e220e35d87728 MD5 | raw file
  1. # name : ndataview
  2. # key : ndataview
  3. # group : extjs
  4. # contributor : crazycode@gmail.com
  5. # This was cloned from a TextMate bundle for yasnippet.
  6. # --
  7. ${1:name} = new Ext.DataView({
  8. xtype: 'dataview',
  9. emptyText: '${2:No items to display}',${3:
  10. singleSelect: ${4:true},}${5:
  11. autoHeight: true,}${6:
  12. autoScroll: true,
  13. overClass: '${7:x-view-over}',}${8:
  14. itemSelector: '${9:div.thumb-wrap}',}
  15. store: ${10:store}${11:,
  16. tpl: ${12:new ${13:Ext.XTemplate}(
  17. '<tpl for=".">',
  18. $0
  19. '</tpl>'
  20. )}}
  21. });