Skip to content

Deprecations

Jonathan Garbee edited this page Oct 19, 2015 · 12 revisions

Data Tables automatic selectors

The Data Tables component currently supports creating checkboxes for rows for developers. This is being deprecated. There are numerous issues with the implementation and adding in support to handle these problems will only add a good portion of complexity to a component that is otherwise very simple. If you are currently using mdl-data-table--selectable then this will affect you. The recommended alternative is for developers to create the checkboxes on their own.

<table class="mdl-data-table mdl-js-data-table mdl-data-table--selectable mdl-shadow--2dp">
  <thead>
    <tr>
      <th class="mdl-data-table__cell--non-numeric">Material</th>
      <th>Quantity</th>
      <th>Unit price</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td class="mdl-data-table__cell--non-numeric">Acrylic (Transparent)</td>
      <td>25</td>
      <td>$2.90</td>
    </tr>
    <tr>
      <td class="mdl-data-table__cell--non-numeric">Plywood (Birch)</td>
      <td>50</td>
      <td>$1.25</td>
    </tr>
    <tr>
      <td class="mdl-data-table__cell--non-numeric">Laminate (Gold on Blue)</td>
      <td>10</td>
      <td>$2.35</td>
    </tr>
  </tbody>
</table>