Fully outfitted table
Date | Result value |
01-01-2021 | 110 |
02-01-2021 | 120 |
03-01-2021 | 110 |
04-01-2021 | 106 |
05-01-2021 | 113 |
06-01-2021 | 158 |
07-01-2021 | 176 |
08-01-2021 | 200 |
09-01-2021 | 248 |
10-01-2021 | 148 |
11-01-2021 | 168 |
12-01-2021 | 215 |
13-01-2021 | 685 |
14-01-2021 | 547 |
15-01-2021 | 112 |
16-01-2021 | 107 |
17-01-2021 | 987 |
18-01-2021 | 105 |
19-01-2021 | 100 |
<script>
var tableOptions= {
tableId: 'table1',
tableTitle: true,
tableTitleOptions: {
tableTitleValue: 'Daily revenue (K)',
},
searchBar: true,
pagation: true,
pagationLimit: 5,
tableStyle: {
tableBackground: 'white',
headerBackground: '#457B9D',
headerTextColor: 'F1FAEE',
tableRowTextColor: '#457B9D',
pagationButtonTextColor: '#457B9D',
pagationTextColor: '#457B9D',
tableShadow: 'rgba(99, 99, 99, 0.2) 0px 2px 8px 0px',
},
};
nfTableFomat(tableOptions);
</script>
Table without any functionality
Position | Movie name | Year | IMDB rating |
1 | The Shawshank Redemption | 1994 | 9,2 |
2 | The Godfather | 1972 | 9,1 |
3 | The Godfather: Part II | 1974 | 9,0 |
4 | The Dark Knight | 2008 | 9,0 |
5 | 12 Angry Men | 1957 | 9,0 |
<script>
var tableOptions= {
tableId: 'table2',
columnFiltering: false,
colWidth: ['15%', '45%', '20%' , '20%'],
sortingEnabled: false,
tableStyle: {
tableBackground: 'white',
tableShadow: 'rgba(99, 99, 99, 0.2) 0px 2px 8px 0px',
},
};
nfTableFomat(tableOptions);
</script>
Table with sorting
First name | Last name | email |
Donald | Duck | donald@duck.com |
Huey | Duck | huey@duck.com |
Dewey | Duck | dewey@duck.com |
Louie | Duck | louie@duck.com |
<script>
var tableOptions= {
tableId: 'table3',
columnFiltering: false,
tableStyle: {
tableBackground: 'white',
tableBorder: '#ee6c4d solid 1px',
headerBackground: '#ee6c4d',
headerTextColor: 'e0fbfc',
tableShadow: 'rgba(99, 99, 99, 0.2) 0px 2px 8px 0px',
},
};
nfTableFomat(tableOptions);
</script>
Table without sorting with filters on columns
First name | Last name | email |
Donald | Duck | donald@duck.com |
Huey | Duck | huey@duck.com |
Dewey | Duck | dewey@duck.com |
Louie | Duck | louie@duck.com |
<script>
var tableOptions= {
tableId: 'table3',
sortingEnabled: false,
tableStyle: {
tableBackground: 'white',
tableBorder: '#ee6c4d solid 1px',
headerBackground: '#ee6c4d',
headerTextColor: 'e0fbfc',
tableShadow: 'rgba(99, 99, 99, 0.2) 0px 2px 8px 0px',
},
};
nfTableFomat(tableOptions);
</script>
Table with inner HTML elements
Default styling 1 with small searchBar
First name | Last name | email |
Donald | Duck | donald@duck.com |
Huey | Duck | huey@duck.com |
Dewey | Duck | dewey@duck.com |
Louie | Duck | louie@duck.com |
Default styling 2 with wide search bar
First name | Last name | email |
Donald | Duck | donald@duck.com |
Huey | Duck | huey@duck.com |
Dewey | Duck | dewey@duck.com |
Louie | Duck | louie@duck.com |