Skip to content

Commit 0a890ff

Browse files
committed
New prop for first time sort direction
1 parent 15237cb commit 0a890ff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

components/data-table/column.jsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ DataTableColumn.propTypes = {
7878
* Width of column. This is required for advanced/fixed layout tables. Please provide units. (`rems` are recommended)
7979
*/
8080
width: PropTypes.string,
81+
/**
82+
* The default sort direction for the first time if the column is not sorted and sortDirection not given
83+
*/
84+
firstSortDirection: PropTypes.oneOf(['asc', 'desc'])
8185
};
8286

8387
export default DataTableColumn;

0 commit comments

Comments
 (0)