Skip to content

Commit

Permalink
EuiTableRowCellProps TS defs fixes (#1310)
Browse files Browse the repository at this point in the history
Add missing props to the TS definition for EuiTableRowCellProps.
  • Loading branch information
pugnascotia authored Nov 15, 2018
1 parent 64995b5 commit 43db459
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

- `EuiToken` now exports enumerated constants for `SHAPES` and `COLORS` ([#1301](https://github.com/elastic/eui/pull/1301))
- Added mixins for `EuiCallOut` coloring and `EuiTooltip` styles ([#1305](https://github.com/elastic/eui/pull/1305))
- Improve TypeScript definitions for `EuiTableRowCellProps` ([#1310](https://github.com/elastic/eui/pull/1310))

## [`5.0.1`](https://github.com/elastic/eui/tree/v5.0.1)

Expand Down
12 changes: 9 additions & 3 deletions src/components/table/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import {
ThHTMLAttributes,
TdHTMLAttributes
} from 'react';
import { EuiTableRowCellProps } from '@elastic/eui';

declare module '@elastic/eui' {
/**
Expand Down Expand Up @@ -132,13 +131,20 @@ declare module '@elastic/eui' {
*/

export interface EuiTableRowCellProps {
truncateText?: boolean;
align?: HorizontalAlignment;
hasActions?: boolean;
header?: string;
hideForMobile?: boolean;
isExpander?: boolean;
isMobileFullWidth?: boolean;
isMobileHeader?: boolean;
showOnHover?: boolean;
textOnly?: boolean;
truncateText?: boolean;
}

export const EuiTableRowCell: SFC<
CommonProps & HTMLAttributes<HTMLDivElement> & EuiTableRowCellProps
CommonProps & TdHTMLAttributes<HTMLTableCellElement> & EuiTableRowCellProps
>;

/**
Expand Down

0 comments on commit 43db459

Please sign in to comment.