angularjs-data-tables

AngularJS directive for data tables 1.10

Added by: Sam Deering

GitHub

Repository

m-marko/angularjs-data-tables

Stats

Stars: 3

Watchers: 3

Forks: 0

Module Description

#AngularJS directive for data tables 1.10

#Setup

  1. Add angularDataTable to your module
  2. Add data-table directive to your table element
  3. Add data and column-defs attributes on your table element
    1. data is your array of data
    2. column-defs is array of your data table column definition
  4. You can send options to data table using options attribute

#Example

<table data-table options="dataTableOptions" data="yourDataArray" column-defs="columnDefs">
    <thead>
        <tr>
          <th>Column 1</th>
          <th>Column 2</th>
        </tr>
        <tr class="second">
            <td rowspan="1" colspan="1">
                <label>
                    <input type="text" name="search_column1" placeholder="Filter column 1" class="search_init">
                </label>
            </td>
            <td rowspan="1" colspan="1">
                <label>
                    <input type="text" name="search_column2" placeholder="Filter column 2" class="search_init">
                </label>
            </td>
        </tr>
    </thead>
</table>

Module stats last updated: 2015-06-07 05:42:51

Disclaimer: Some data on this page may have been gathered from the authors GitHub respository. If you see any mistakes or outdated information please let us know. Thanks!