@stenajs-webui/grid 21.0.3 → 21.2.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.
@@ -84,19 +84,26 @@ export interface StandardTableProps<TItem extends object, TColumnKey extends str
84
84
  */
85
85
  onSortOrderChange?: StandardTableOnSortOrderChange<TColumnKey>;
86
86
  /**
87
- * If set, this will always show below <th> and above first <tr>.
88
- * This row is 100% custom, and inherits no design or functionality from StandardTable.
89
- * You must make sure that extraHeaderRow root is a <tr> and contains <td> elements.
87
+ * If set, this will always show inside <thead>, below last <th>.
88
+ * This row is 100% custom, shown as is, and inherits no design or functionality from StandardTable.
89
+ * You must make sure that renderExtraHeadRows root is one or several <th> elements.
90
+ * You must also make sure that it has correct number of cells, with correct padding, etc.
91
+ */
92
+ renderExtraHeadRows?: () => ReactNode;
93
+ /**
94
+ * If set, this will always show inside <tbody>, above first <tr>.
95
+ * This row is 100% custom, shown as is, and inherits no design or functionality from StandardTable.
96
+ * You must make sure that extraHeaderRow root is a <tr>.
90
97
  * You must also make sure that it has correct number of cells, with correct padding, etc.
91
98
  */
92
99
  renderExtraRowTop?: () => ReactNode;
93
100
  /**
94
101
  * If set, this will always show below last <tr>.
95
- * This row is 100% custom, and inherits no design or functionality from StandardTable.
96
- * You must make sure that extraHeaderRow root is a <tr> and contains <td> elements.
102
+ * This row is 100% custom, shown as is, and inherits no design or functionality from StandardTable.
103
+ * You must make sure that extraHeaderRow root is a <tr>.
97
104
  * You must also make sure that it has correct number of cells, with correct padding, etc.
98
105
  */
99
106
  renderExtraRowBottom?: () => ReactNode;
100
107
  }
101
108
  export type StandardTableVariant = "relaxed" | "standard" | "condensed" | "compact";
102
- export declare const StandardTable: <TItem extends object, TColumnKey extends string, TColumnGroupKey extends string>({ tableContext, config, columnGroupOrder, tableId, variant, onKeyDown, onSortOrderChange, ...props }: StandardTableProps<TItem, TColumnKey, TColumnGroupKey>) => React.JSX.Element;
109
+ export declare const StandardTable: <TItem extends object, TColumnKey extends string, TColumnGroupKey extends string>({ tableContext, config, columnGroupOrder, tableId, variant, onKeyDown, onSortOrderChange, renderExtraHeadRows, ...props }: StandardTableProps<TItem, TColumnKey, TColumnGroupKey>) => React.JSX.Element;