@evergis/uilib-gl 1.0.58 → 1.0.60
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Column, SlickgridReactInstance } from "slickgrid-react";
|
|
1
|
+
import { Column, GridOption, SlickgridReactInstance } from "slickgrid-react";
|
|
2
2
|
import { SlickgridReactProps } from "slickgrid-react/dist/types/components/slickgridReactProps";
|
|
3
3
|
export declare type Sort = "asc" | "desc";
|
|
4
4
|
export interface DataGridProps {
|
|
@@ -8,6 +8,7 @@ export interface DataGridProps {
|
|
|
8
8
|
columns?: Column[];
|
|
9
9
|
height?: string | number;
|
|
10
10
|
width?: string | number;
|
|
11
|
+
gridOptions?: GridOption;
|
|
11
12
|
onSort?: (id: string, type: Sort) => void;
|
|
12
13
|
onClick?: SlickgridReactProps["onClick"];
|
|
13
14
|
onDblClick?: SlickgridReactProps["onDblClick"];
|
package/dist/uilib-gl.esm.js
CHANGED
|
@@ -22209,6 +22209,7 @@ const DataGrid = _ref => {
|
|
|
22209
22209
|
columns = [],
|
|
22210
22210
|
loading,
|
|
22211
22211
|
gridId = "data-grid",
|
|
22212
|
+
gridOptions,
|
|
22212
22213
|
onSort,
|
|
22213
22214
|
onClick,
|
|
22214
22215
|
onDblClick,
|
|
@@ -22251,10 +22252,10 @@ const DataGrid = _ref => {
|
|
|
22251
22252
|
enablePagination: false,
|
|
22252
22253
|
enableSorting: false,
|
|
22253
22254
|
enableColumnReorder: false,
|
|
22254
|
-
// frozenColumn: 0,
|
|
22255
22255
|
gridHeight: height ?? 300,
|
|
22256
22256
|
gridWidth: width ?? "100%",
|
|
22257
|
-
multiColumnSort: false
|
|
22257
|
+
multiColumnSort: false,
|
|
22258
|
+
...gridOptions
|
|
22258
22259
|
},
|
|
22259
22260
|
dataset: data,
|
|
22260
22261
|
onClick: onClick,
|