Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

Commit 4791ef5

Browse files
prop fix for copy-paste (#528)
1 parent 3b7c4f8 commit 4791ef5

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

src/dash-table/components/Table/props.ts

+1
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ export interface IProps {
273273
filter_query?: string;
274274
filter_action?: TableAction;
275275
hidden_columns?: string[];
276+
include_headers_on_copy_paste?: boolean;
276277
locale_format: INumberLocale;
277278
merge_duplicate_headers?: boolean;
278279
fixed_columns?: Fixed;

src/dash-table/dash/DataTable.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -287,13 +287,6 @@ export const propTypes = {
287287
*/
288288
id: PropTypes.string.isRequired,
289289

290-
/**
291-
* If true, headers are included when copying from the table to different
292-
* tabs and elsewhere. Note that headers are ignored when copying from the table onto itself and
293-
* between two tables within the same tab.
294-
*/
295-
include_headers_on_copy_paste: PropTypes.bool,
296-
297290
/**
298291
* The `name` of the column,
299292
* as it appears in the column header.
@@ -392,6 +385,13 @@ export const propTypes = {
392385
type: PropTypes.oneOf(['any', 'numeric', 'text', 'datetime'])
393386
})),
394387

388+
/**
389+
* If true, headers are included when copying from the table to different
390+
* tabs and elsewhere. Note that headers are ignored when copying from the table onto itself and
391+
* between two tables within the same tab.
392+
*/
393+
include_headers_on_copy_paste: PropTypes.bool,
394+
395395
/**
396396
* The localization specific formatting information applied to all columns in the table.
397397
*

0 commit comments

Comments
 (0)