templates.html (Case Conflict 1)
上传用户:shuoshiled
上传日期:2018-01-28
资源大小:10124k
文件大小:1k
源码类别:

中间件编程

开发平台:

JavaScript

  1. <html>
  2. <head>
  3.   <title>The source code</title>
  4.     <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
  5.     <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
  6. </head>
  7. <body  onload="prettyPrint();">
  8.     <pre class="prettyprint lang-js">// In AIR, XTemplates must be created at load time
  9. Templates = {
  10. categoryCombo: new Ext.XTemplate(
  11. '<tpl for="."><div class="x-combo-list-item">{listName}</div></tpl>'
  12. ),
  13. timeField: new Ext.XTemplate(
  14. '<tpl for="."><div class="x-combo-list-item">{text}</div></tpl>'
  15. ),
  16. gridHeader : new Ext.Template(
  17.         '<table border="0" cellspacing="0" cellpadding="0" style="{tstyle}">',
  18.         '<thead><tr class="x-grid3-hd-row">{cells}</tr></thead>',
  19.         '<tbody><tr class="new-task-row">',
  20.             '<td><div id="new-task-icon"></div></td>',
  21.             '<td><div class="x-small-editor" id="new-task-title"></div></td>',
  22.             '<td><div class="x-small-editor" id="new-task-cat"></div></td>',
  23.             '<td><div class="x-small-editor" id="new-task-due"></div></td>',
  24.         '</tr></tbody>',
  25.         "</table>"
  26.     )
  27. };
  28. </pre>    
  29. </body>
  30. </html>