schummar-table 0.30.1 → 0.31.1

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.
@@ -155,6 +155,8 @@ export interface TableProps<T> extends PartialTableTheme<T> {
155
155
  columns: Column<T, any>[] | ((col: <V>(value: (item: T) => V, column: Omit<Column<T, V>, 'value'>) => Column<T, V>) => Column<T, any>[]);
156
156
  /** Default props for all column. Will take effect if not overriden in column definition. */
157
157
  defaultColumnProps?: Omit<Column<T, unknown>, 'id' | 'value'>;
158
+ /** Set props for multiple columns at once. Will take effect if not overriden in column definition. */
159
+ columnProps?: FunctionWithDeps<(id: Id) => Partial<Omit<Column<T, unknown>, 'id'>>>;
158
160
  /** Wrap each cell */
159
161
  wrapCell?: FunctionWithDeps<(content: ReactNode, value: unknown, item: T, index: number) => ReactNode>;
160
162
  /** Display a cell at the start of each row. Useful for "go to details" button for example. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "schummar-table",
3
- "version": "0.30.1",
3
+ "version": "0.31.1",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "repository": "schummar/schummar-table",