extjs4.2 - ExtJs HTML/DOM code optimization -


spent lot of resources figure out how optimize extjs html code. have simple combobox label , extjs throw on page this:

<tr role="presentation" id="inputs[1].typeid-inputrow" class="x-form-item-input-row">     <td role="presentation" id="inputs[1].typeid-labelcell" style="" valign="top" halign="left" width="88" class="x-field-label-cell">         <label          id="inputs[1].typeid-labelel"          for="inputs[1].typeid-inputel"          class="x-form-item-label x-unselectable x-form-item-label-left"          style="width:83px;margin-right:5px;" unselectable="on">          placement id:     </label>     </td>     <td role="presentation" class="x-form-item-body x-form-trigger-wrap-focus" id="inputs[1].typeid-bodyel" colspan="2">     <table id="inputs[1].typeid-triggerwrap" class="x-form-trigger-wrap" cellpadding="0" cellspacing="0" style="table-layout: auto;">         <tbody>         <tr>             <td id="inputs[1].typeid-inputcell" class="x-form-trigger-input-cell">                     <div class="x-hide-display x-form-data-hidden" role="presentation" id="ext-gen1311">             </div>             <input                  id="inputs[1].typeid-inputel"                  type="text"                  class="x-form-field x-form-required-field x-form-text x-trigger-noedit x-form-focus x-field-form-focus x-field-default-form-focus"                  autocomplete="off"                              name="inputs[1].typeid"                  placeholder="data source"                  readonly="readonly"                  aria-invalid="false"                  data-errorqtip=""                  style="width: 137px;">             </td>                     <td valign="top" class=" x-trigger-cell x-unselectable" style="width:22px;" id="ext-gen1310">             <div class="x-trigger-index-0 x-form-trigger x-form-arrow-trigger x-form-trigger-first" role="button" id="ext-gen1309">             </div>             </td>         </tr>         </tbody>     </table>     </td> </tr> 

how change tables inside tables simple xtype: 'combobox'? have hundreds on page, slows down lot because heavy html code.

it done simple div wit ha float on it, why extjs renders table code?

if want/need simpler markup in ext, way code own component can define simpler one.

there no way of simplifying ext generated markup without danger of breaking functionality or layout engine.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -