-
Notifications
You must be signed in to change notification settings - Fork 841
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EuiTableRowCellProps TS defs fixes #1310
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,6 @@ import { | |
ThHTMLAttributes, | ||
TdHTMLAttributes | ||
} from 'react'; | ||
import { EuiTableRowCellProps } from '@elastic/eui'; | ||
|
||
declare module '@elastic/eui' { | ||
/** | ||
|
@@ -132,13 +131,20 @@ declare module '@elastic/eui' { | |
*/ | ||
|
||
export interface EuiTableRowCellProps { | ||
truncateText?: boolean; | ||
align?: HorizontalAlignment; | ||
hasActions?: boolean; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, but your comment made me realise that I was unioning the wrong props. I've fix that now so that There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh now I see, got it. |
||
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 | ||
>; | ||
|
||
/** | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question: why is
EuiTableRowCellProps
imported at the top of this file, while also exporting it here?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have no idea...removed.