Skip to content

Commit 2920ac4

Browse files
committed
Add displaying of custom elements in toolbars
1 parent 08b033b commit 2920ac4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/datagrid.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,12 @@ export const Datagrid = <T extends DataSourceType>(props: DatagridProps<T>) => {
109109
};
110110

111111
const renderToolbarSection = (elements: JSX.Element[]) => {
112-
return elements.filter(e => e.type === Pager).length > 0 && renderPaginationControls(filteredData.length)
112+
return(
113+
<>
114+
{elements.filter(e => e.type !== Pager)}
115+
{elements.filter(e => e.type === Pager).length > 0 && renderPaginationControls(filteredData.length)}
116+
</>
117+
);
113118
}
114119

115120
return (

0 commit comments

Comments
 (0)