commit extjs-2.2.1
[extjs.git] / air / samples / tasks / js / Templates.js
1 /*\r
2  * Ext JS Library 0.30\r
3  * Copyright(c) 2006-2009, Ext JS, LLC.\r
4  * licensing@extjs.com\r
5  * \r
6  * http://extjs.com/license\r
7  */\r
8 \r
9 // In AIR, XTemplates must be created at load time\r
10 Templates = {\r
11         categoryCombo: new Ext.XTemplate(\r
12                 '<tpl for="."><div class="x-combo-list-item">{listName}</div></tpl>'\r
13         ),\r
14         timeField: new Ext.XTemplate(\r
15                 '<tpl for="."><div class="x-combo-list-item">{text}</div></tpl>'\r
16         ),\r
17 \r
18         gridHeader : new Ext.Template(\r
19         '<table border="0" cellspacing="0" cellpadding="0" style="{tstyle}">',\r
20         '<thead><tr class="x-grid3-hd-row">{cells}</tr></thead>',\r
21         '<tbody><tr class="new-task-row">',\r
22             '<td><div id="new-task-icon"></div></td>',\r
23             '<td><div class="x-small-editor" id="new-task-title"></div></td>',\r
24             '<td><div class="x-small-editor" id="new-task-cat"></div></td>',\r
25             '<td><div class="x-small-editor" id="new-task-due"></div></td>',\r
26         '</tr></tbody>',\r
27         "</table>"\r
28     )\r
29 };\r