templates.html (Case Conflict 1)
资源名称:ext-3.0.0.zip [点击查看]
上传用户:shuoshiled
上传日期:2018-01-28
资源大小:10124k
文件大小:1k
源码类别:
中间件编程
开发平台:
JavaScript
- <html>
- <head>
- <title>The source code</title>
- <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
- <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
- </head>
- <body onload="prettyPrint();">
- <pre class="prettyprint lang-js">// In AIR, XTemplates must be created at load time
- Templates = {
- categoryCombo: new Ext.XTemplate(
- '<tpl for="."><div class="x-combo-list-item">{listName}</div></tpl>'
- ),
- timeField: new Ext.XTemplate(
- '<tpl for="."><div class="x-combo-list-item">{text}</div></tpl>'
- ),
- gridHeader : new Ext.Template(
- '<table border="0" cellspacing="0" cellpadding="0" style="{tstyle}">',
- '<thead><tr class="x-grid3-hd-row">{cells}</tr></thead>',
- '<tbody><tr class="new-task-row">',
- '<td><div id="new-task-icon"></div></td>',
- '<td><div class="x-small-editor" id="new-task-title"></div></td>',
- '<td><div class="x-small-editor" id="new-task-cat"></div></td>',
- '<td><div class="x-small-editor" id="new-task-due"></div></td>',
- '</tr></tbody>',
- "</table>"
- )
- };
- </pre>
- </body>
- </html>