@stenajs-webui/grid 20.14.0 → 20.14.2
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/features/standard-table/components/StandardTable.d.ts +14 -0
- package/dist/features/standard-table/components/StandardTableContent.d.ts +1 -1
- package/dist/index.es.js +131 -125
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
|
@@ -89,6 +89,20 @@ export interface StandardTableProps<TItem extends object, TColumnKey extends str
|
|
|
89
89
|
* This is triggered when user clicks on the table headers, even if using external sorting.
|
|
90
90
|
*/
|
|
91
91
|
onSortOrderChange?: StandardTableOnSortOrderChange<TColumnKey>;
|
|
92
|
+
/**
|
|
93
|
+
* If set, this will always show below <th> and above first <tr>.
|
|
94
|
+
* This row is 100% custom, and inherits no design or functionality from StandardTable.
|
|
95
|
+
* You must make sure that extraHeaderRow root is a <tr> and contains <td> elements.
|
|
96
|
+
* You must also make sure that it has correct number of cells, with correct padding, etc.
|
|
97
|
+
*/
|
|
98
|
+
renderExtraRowTop?: () => ReactNode;
|
|
99
|
+
/**
|
|
100
|
+
* If set, this will always show below last <tr>.
|
|
101
|
+
* This row is 100% custom, and inherits no design or functionality from StandardTable.
|
|
102
|
+
* You must make sure that extraHeaderRow root is a <tr> and contains <td> elements.
|
|
103
|
+
* You must also make sure that it has correct number of cells, with correct padding, etc.
|
|
104
|
+
*/
|
|
105
|
+
renderExtraRowBottom?: () => ReactNode;
|
|
92
106
|
}
|
|
93
107
|
export type StandardTableVariant = "relaxed" | "standard" | "condensed" | "compact";
|
|
94
108
|
export declare const StandardTable: <TItem extends object, TColumnKey extends string, TColumnGroupKey extends string>({ tableContext, config, columnGroupOrder, tableId, variant, onKeyDown, onSortOrderChange, appendTooltipTo, ...props }: StandardTableProps<TItem, TColumnKey, TColumnGroupKey>) => React.JSX.Element;
|
|
@@ -3,5 +3,5 @@ import { StandardTableProps, StandardTableVariant } from "./StandardTable";
|
|
|
3
3
|
interface Props<TItem extends object, TColumnKey extends string, TColumnGroupKey extends string> extends Omit<StandardTableProps<TItem, TColumnKey, TColumnGroupKey>, "tableContext" | "config"> {
|
|
4
4
|
variant: StandardTableVariant;
|
|
5
5
|
}
|
|
6
|
-
export declare const StandardTableContent: React.MemoExoticComponent<(<TItem extends object, TColumnKey extends string, TColumnGroupKey extends string>({ error, bannerError, loading, items, noItemsLabel, noItemsContentRight, noItemsContentBottom, noItemsHeader, colIndexOffset, rowIndexOffset, variant, errorLabel, }: Props<TItem, TColumnKey, TColumnGroupKey>) => React.JSX.Element)>;
|
|
6
|
+
export declare const StandardTableContent: React.MemoExoticComponent<(<TItem extends object, TColumnKey extends string, TColumnGroupKey extends string>({ error, bannerError, loading, items, noItemsLabel, noItemsContentRight, noItemsContentBottom, noItemsHeader, colIndexOffset, rowIndexOffset, variant, errorLabel, renderExtraRowTop, renderExtraRowBottom, }: Props<TItem, TColumnKey, TColumnGroupKey>) => React.JSX.Element)>;
|
|
7
7
|
export {};
|