Skip to content

Commit 8d9ceff

Browse files
committed
make showSortIcons optional
1 parent 0b23bca commit 8d9ceff

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "frame-one-table",
3-
"version": "0.2.6",
3+
"version": "0.2.7",
44
"description": "A react table with maximum flexibility.",
55
"main": "build/index.js",
66
"module": "build/index.es.js",

src/TableGenerator.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,11 @@ export interface ColumnOption<T = any> {
139139
/**
140140
* Toggle to hide or show the arrow icons in the header cell if the column is sortable. Takes precedent of the "showSortIcons" props from TableGeneratorProps
141141
*/
142-
showSortIcons: boolean;
142+
showSortIcons?: boolean;
143143

144144
/**
145145
* Custom sort function for the column where a & b are the values.
146-
* If not custom sort is applied, the library will attempt to sort automatically based on the primitive data type
146+
* If no custom sort is applied, the library will attempt to sort automatically based on the primitive data type
147147
*
148148
* @param a
149149
* @param b

0 commit comments

Comments
 (0)