Skip to content

Commit

Permalink
Fix #4430: RowEdit icon customization fix (#5341)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Nov 17, 2023
1 parent b5065c1 commit 262b790
Showing 1 changed file with 58 additions and 55 deletions.
113 changes: 58 additions & 55 deletions components/lib/datatable/DataTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -1678,80 +1678,83 @@ export const DataTable = React.forwardRef((inProps, ref) => {
<TableBody
hostName="DataTable"
ref={bodyRef}
value={dataToRender(rows)}
style={style}
cellClassName={props.cellClassName}
cellSelection={props.cellSelection}
checkIcon={props.checkIcon}
className={classNames('p-datatable-tbody', className)}
empty={empty}
frozenRow={false}
tableProps={props}
tableSelector={attributeSelector.current}
collapsedRowIcon={props.collapsedRowIcon}
columns={columns}
selectionModeInColumn={selectionModeInColumn}
first={first}
compareSelectionBy={props.compareSelectionBy}
contextMenuSelection={props.contextMenuSelection}
dataKey={props.dataKey}
dragSelection={props.dragSelection}
editMode={props.editMode}
editingMeta={editingMetaState}
onEditingMetaChange={onEditingMetaChange}
tabIndex={props.tabIndex}
onRowClick={props.onRowClick}
onRowDoubleClick={props.onRowDoubleClick}
onRowPointerDown={props.onRowPointerDown}
onRowPointerUp={props.onRowPointerUp}
onRowMouseEnter={props.onRowMouseEnter}
onRowMouseLeave={props.onRowMouseLeave}
onCellClick={props.onCellClick}
selection={props.selection}
onSelectionChange={props.onSelectionChange}
editingRows={props.editingRows}
empty={empty}
emptyMessage={props.emptyMessage}
expandableRowGroups={props.expandableRowGroups}
expandedRowIcon={props.expandedRowIcon}
expandedRows={props.expandedRows}
first={first}
frozenRow={false}
groupRowsBy={props.groupRowsBy}
isDataSelectable={props.isDataSelectable}
isVirtualScrollerDisabled={isVirtualScrollerDisabled}
lazy={props.lazy}
paginator={props.paginator}
loading={props.loading}
metaKeySelection={props.metaKeySelection}
onCellClick={props.onCellClick}
onCellSelect={props.onCellSelect}
onCellUnselect={props.onCellUnselect}
onRowSelect={props.onRowSelect}
onRowUnselect={props.onRowUnselect}
dragSelection={props.dragSelection}
onContextMenu={props.onContextMenu}
onContextMenuSelectionChange={props.onContextMenuSelectionChange}
metaKeySelection={props.metaKeySelection}
selectionMode={props.selectionMode}
cellSelection={props.cellSelection}
contextMenuSelection={props.contextMenuSelection}
dataKey={props.dataKey}
expandedRows={props.expandedRows}
onEditingMetaChange={onEditingMetaChange}
onRowClick={props.onRowClick}
onRowCollapse={props.onRowCollapse}
onRowDoubleClick={props.onRowDoubleClick}
onRowEditCancel={props.onRowEditCancel}
onRowEditChange={props.onRowEditChange}
onRowEditComplete={props.onRowEditComplete}
onRowEditInit={props.onRowEditInit}
onRowEditSave={props.onRowEditSave}
onRowExpand={props.onRowExpand}
onRowToggle={props.onRowToggle}
editMode={props.editMode}
editingRows={props.editingRows}
onRowMouseEnter={props.onRowMouseEnter}
onRowMouseLeave={props.onRowMouseLeave}
onRowPointerDown={props.onRowPointerDown}
onRowPointerUp={props.onRowPointerUp}
onRowReorder={props.onRowReorder}
onRowSelect={props.onRowSelect}
onRowToggle={props.onRowToggle}
onRowUnselect={props.onRowUnselect}
onSelectionChange={props.onSelectionChange}
paginator={props.paginator}
reorderableRows={props.reorderableRows}
scrollable={props.scrollable}
rowGroupMode={props.rowGroupMode}
groupRowsBy={props.groupRowsBy}
expandableRowGroups={props.expandableRowGroups}
loading={props.loading}
emptyMessage={props.emptyMessage}
rowGroupHeaderTemplate={props.rowGroupHeaderTemplate}
responsiveLayout={props.responsiveLayout}
rowClassName={props.rowClassName}
rowEditValidator={props.rowEditValidator}
rowEditorCancelIcon={props.rowEditorCancelIcon}
rowEditorInitIcon={props.rowEditorInitIcon}
rowEditorSaveIcon={props.rowEditorSaveIcon}
rowExpansionTemplate={props.rowExpansionTemplate}
rowGroupFooterTemplate={props.rowGroupFooterTemplate}
onRowEditChange={props.onRowEditChange}
compareSelectionBy={props.compareSelectionBy}
rowGroupHeaderTemplate={props.rowGroupHeaderTemplate}
rowGroupMode={props.rowGroupMode}
scrollable={props.scrollable}
selectOnEdit={props.selectOnEdit}
onRowEditInit={props.onRowEditInit}
rowEditValidator={props.rowEditValidator}
onRowEditSave={props.onRowEditSave}
onRowEditComplete={props.onRowEditComplete}
onRowEditCancel={props.onRowEditCancel}
cellClassName={props.cellClassName}
responsiveLayout={props.responsiveLayout}
selection={props.selection}
selectionAutoFocus={props.selectionAutoFocus}
isDataSelectable={props.isDataSelectable}
showSelectionElement={props.showSelectionElement}
selectionMode={props.selectionMode}
selectionModeInColumn={selectionModeInColumn}
showRowReorderElement={props.showRowReorderElement}
expandedRowIcon={props.expandedRowIcon}
collapsedRowIcon={props.collapsedRowIcon}
checkIcon={props.checkIcon}
rowClassName={props.rowClassName}
showSelectionElement={props.showSelectionElement}
style={style}
tabIndex={props.tabIndex}
tableProps={props}
tableSelector={attributeSelector.current}
value={dataToRender(rows)}
virtualScrollerContentRef={contentRef}
virtualScrollerOptions={options}
isVirtualScrollerDisabled={isVirtualScrollerDisabled}
ptCallbacks={ptCallbacks}
metaData={metaData}
/>
Expand Down

0 comments on commit 262b790

Please sign in to comment.