Skip to content

Migration guide to 0.7.x

Krzysztof Budnik edited this page Aug 25, 2015 · 3 revisions

Major changes:

  • Attributes defined in camelCase style will no longer support.

    <!-- Before: -->
    <hot-table datarows="db.items" contextMenu="true" minSpareRows="minSpareRows" readOnlyClassName="'read-only'">
      <hot-column data="id" readOnly title="'ID'"></hot-column>
      <hot-column data="isActive" title="'Is active'" type="'checkbox'" width="65" checkedTemplate="'Yes'" uncheckedTemplate="'No'"></hot-column>
    </hot-table>
    
    <!-- After: -->
    <hot-table datarows="db.items" context-menu min-spare-rows="minSpareRows" read-only-class-name="'read-only'">
      <hot-column data="id" read-only title="'ID'"></hot-column>
      <hot-column data="isActive" title="'Is active'" type="'checkbox'" width="65" checked-template="'Yes'" unchecked-template="'No'"></hot-column>
    </hot-table>
  • From now Handsontable hooks (callbacks) are available with on- prefix.

    <!-- Before: -->
    <hot-table datarows="db.items" afterInit="afterInitFn" afterRender="afterRenderFn">
      <hot-column data="id" readOnly title="'ID'"></hot-column>
    </hot-table>
    
    <!-- After: -->
    <hot-table datarows="db.items" on-after-init="afterInitFn" on-after-render="afterRenderFn">
      <hot-column data="id" read-only title="'ID'"></hot-column>
    </hot-table>

Clone this wiki locally