Simple Single Template
Simple example of applying a buttons.html5.styles template to a DataTable.
The following javascript is used to initialize the DataTable and define the Excel style:
Click the Excel button to run this script and download the styled table:
Name | Position | Office | Age | Start date | Salary | Name Again | Position Again | Office Again | Age Again | Start date Again | Salary Again |
---|---|---|---|---|---|---|---|---|---|---|---|
Tiger Nixon | System Architect | Edinburgh | 61 | 2011-04-25 | $320,800 | Tiger Nixon | System Architect | Edinburgh | 61 | 2011-04-25 | $320,800 |
Garrett Winters | Accountant | Tokyo | 63 | 2011-07-25 | $170,750 | Garrett Winters | Accountant | Tokyo | 63 | 2011-07-25 | $170,750 |
Ashton Cox | Junior Technical Author | San Francisco | 66 | 2009-01-12 | $86,000 | Ashton Cox | Junior Technical Author | San Francisco | 66 | 2009-01-12 | $86,000 |
Cedric Kelly | Senior Javascript Developer | Edinburgh | 22 | 2012-03-29 | $433,060 | Cedric Kelly | Senior Javascript Developer | Edinburgh | 22 | 2012-03-29 | $433,060 |
Name | Position | Office | Age | Start date | Salary | Name Again | Position Again | Office Again | Age Again | Start date Again | Salary Again |