@linzjs/step-ag-grid 29.4.0 → 29.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/components/gridForm/GridFormDropDown.d.ts +1 -0
- package/dist/step-ag-grid.cjs +1 -1
- package/dist/step-ag-grid.cjs.map +1 -1
- package/dist/step-ag-grid.esm.js +1 -1
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/gridForm/GridFormDropDown.tsx +7 -0
package/package.json
CHANGED
|
@@ -75,6 +75,7 @@ export interface GridFormDropDownProps<TData extends GridBaseRow, TOptionValue>
|
|
|
75
75
|
| FinalSelectOption<TOptionValue>[]
|
|
76
76
|
| ((selectedRows: TData[], filter?: string) => MaybePromise<FinalSelectOption<TOptionValue>[] | undefined>)
|
|
77
77
|
| undefined;
|
|
78
|
+
topComponent?: () => ReactElement;
|
|
78
79
|
}
|
|
79
80
|
|
|
80
81
|
const fieldToString = (field: any) => {
|
|
@@ -272,6 +273,12 @@ export const GridFormDropDown = <TData extends GridBaseRow, TOptionValue>(
|
|
|
272
273
|
)}
|
|
273
274
|
</FocusableItem>
|
|
274
275
|
<MenuDivider key={`$$divider_filter`} />
|
|
276
|
+
{props.topComponent && (
|
|
277
|
+
<div>
|
|
278
|
+
<props.topComponent />
|
|
279
|
+
<MenuDivider key={`$$divider_filter`} />
|
|
280
|
+
</div>
|
|
281
|
+
)}
|
|
275
282
|
</div>
|
|
276
283
|
)}
|
|
277
284
|
<ComponentLoadingWrapper loading={!options} className={'GridFormDropDown-options'}>
|