Skip to content

Commit

Permalink
Merge pull request #149 from nzzdev/release-3.4.1
Browse files Browse the repository at this point in the history
Release 3.4.1
  • Loading branch information
Philip Küng authored Feb 15, 2021
2 parents f74b771 + f21d839 commit d41128a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
5 changes: 4 additions & 1 deletion helpers/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,11 @@ function getTableData(data, footnotes, options) {
let cells = row.map((cell, columnIndex) => {
let type = "text";
let value = cell;
let classes = [];
if (columns[columnIndex].isNumeric) {
type = "numeric";
classes.push('s-font-note--tabularnums');

// do not format the header row, empty cells, a hyphen(-) or a en dash (–)
if (
rowIndex > 0 &&
Expand All @@ -100,7 +103,7 @@ function getTableData(data, footnotes, options) {
return {
type: type,
value: value,
classes: []
classes: classes
};
});
tableData.push(cells);
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "q-table",
"version": "3.4.0",
"version": "3.4.1",
"description": "",
"main": "index.js",
"scripts": {
Expand Down
Loading

0 comments on commit d41128a

Please sign in to comment.