PageRenderTime 42ms CodeModel.GetById 20ms app.highlight 0ms RepoModel.GetById 20ms app.codeStats 0ms

/javascript-mode/extjs_localcombo

http://github.com/ridgetang/snippets
#! | 20 lines | 20 code | 0 blank | 0 comment | 0 complexity | c6c9f572ab97e8ebcd829b878b87a9ad MD5 | raw file
 1# name : localcombo
 2# key : localcombo
 3# group : extjs
 4# contributor : crazycode@gmail.com
 5# This was cloned from a TextMate bundle for yasnippet.
 6# --
 7{
 8  xtype:          'combo',
 9  mode:           'local',
10  triggerAction:  'all',
11  forceSelection: true,
12  editable:       false,
13  anchor:         "-20",
14  fieldLabel:     '${1:Label}',
15  name:           '${2:${1/(.*)/\l$1/}}',
16  hiddenName:     '${2:${1/(.*)/\l$1/}}',
17  displayField:   '${3:name}',
18  valueField:     '${4:value}',
19  store:          ${5:store}
20}