<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                本文地址:[http://blog.csdn.net/sushengmiyan/article/details/39665979](http://blog.csdn.net/sushengmiyan/article/details/39665979) 官方文檔:[?http://docs.sencha.com/extjs/5.0/apidocs/#!/api/Ext.grid.column.Date](http://docs.sencha.com/extjs/5.0/apidocs/#!/api/Ext.grid.column.Date)[](http://docs.sencha.com/extjs/5.0/apidocs/#!/api/Ext-method-each) 本文作者:[sushengmiyan](http://blog.csdn.net/sushengmiyan) ------------------------------------------------------------------------------------------------------------------------------------ 在使用表格的時候,我們默認都是加載一些文本文字,可是偶爾我們還有個性化的需求,比如我想增加一個選擇框,或者我需要一個日期的輸入。那么這時候,就需要配置gridpanel的格式屬性了。 配置的時候遇到了這個錯誤:TypeError: headers[i].getCellWidth is not a function ![](https://box.kancloud.cn/2016-02-03_56b214e996277.jpg) 我配置的代碼如下 ~~~ Ext.create('Ext.grid.Panel', { frame: true, columnLines: true, // 加上表格線 selType: 'cellmodel', dockedItems: [{ xtype: 'toolbar', dock: 'top', items: [{ xtype: 'label', text: '使用日期:', //glyph: 0xf016, //handler: 'addRecord', },{ xtype: 'datefield', name: 'dateuse', format: 'Y-m-d', submitFormat: 'Y-m-d' },{ text: '查看此段', listeners: { click: function() { alert('I was clicked!'); }, } }] }], renderTo: Ext.getBody(), columns: [ { text: '車輛', dataIndex: '車輛' }, { text: '選擇', dataIndex: '選擇', xtype: 'checkbox'},//這個地方想配置選擇框 { text: '星期一', dataIndex: '星期一' }, { text: '星期二', dataIndex: '星期二' }, { text: '星期三', dataIndex: '星期三' }, { text: '星期四', dataIndex: '星期四' }, { text: '星期五', dataIndex: '星期五' }, { text: '星期六', dataIndex: '星期六' }, { text: '星期日', dataIndex: '星期日' } ], store: clxxStore }).show(); ~~~ 在配置選擇框的地方我配置的xtype為checkbox就出錯了。原因是對于gridpanel中的這個屬性,有單獨的組件配置: ![](https://box.kancloud.cn/2016-02-03_56b214eb92d06.jpg) 所以想配置check的話就需要找到這個的別名chekcolunm Ok.就這樣解決問題了。
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看