-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Table Renames. render* -> *Renderer. Focus -> FocusedCell. *Header -> *HeaderCell. #1890
Conversation
This includes - allowMultipleSelection enableMultipleSelection - fillBodyWithGhostCells enableGhostCells - isColumnReorderable enableColumnReordering - isColumnResizable enableColumnResizing - isRowHeaderShown enableRowHeader - isRowReorderable enableRowReordering - isRowResizable enableRowResizing - enableFocus enableFocusedCell - onFocus onFocusedCell - renderBody bodyRenderer - renderBodyContextMenu bodyContextMenuRenderer - renderColumnHeader columnHeaderCellRenderer - renderRowHeader rowHeaderCellRenderer - useInteractionBar enableColumnInteractionBar
lintPreview: documentation | table |
allowMultipleSelection={this.state.enableMultiSelection} | ||
enableFocus={this.state.showFocusCell} | ||
fillBodyWithGhostCells={this.state.showGhostCells} | ||
enableMultipleSelection={this.state.enableMultiSelection} |
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.
nit: alphabetize all these
@@ -44,7 +44,7 @@ export interface IColumnProps extends IColumnNameProps, IProps { | |||
* An instance of `IColumnHeaderRenderer`, a function that takes a column |
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 think renderCell
(above) should be renamed to cellRenderer
as well..?
packages/table/src/table.tsx
Outdated
@@ -248,7 +248,7 @@ export interface ITableProps extends IProps, IRowHeights, IColumnWidths { | |||
* contain all selected regions. Otherwise it will have one `IRegion` that | |||
* represents the clicked cell. | |||
*/ | |||
renderBodyContextMenu?: IContextMenuRenderer; | |||
bodyContextMenuRenderer?: IContextMenuRenderer; |
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.
alphabetize props in interfaces
packages/table/src/tableBody.tsx
Outdated
@@ -40,7 +40,7 @@ export interface ITableBodyProps extends ISelectableProps, ITableBodyCellsProps | |||
* on the table body. The callback is supplied with an `IMenuContext` | |||
* containing the `IRegion`s of interest. | |||
*/ | |||
renderBodyContextMenu?: IContextMenuRenderer; | |||
bodyContextMenuRenderer?: IContextMenuRenderer; |
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.
alph
lintPreview: documentation | table |
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.
still a few un-alphabetized spots, but it's not worth fixing without a linter auto-fix
Renames: