morse-react-tables
Advanced tools
Comparing version 4.1.2-alpha.3 to 4.1.2-alpha.4
import { ReactNode } from "react"; | ||
import { ColumnDefinition } from "../components/columns"; | ||
import { ColumnDefinition, Paths } from "../components/columns"; | ||
export interface TablePluginOptions<T> { | ||
@@ -18,3 +18,3 @@ } | ||
*/ | ||
postRowRender?: (renderedRow: ReactNode, item: T, columns: Array<keyof T | ColumnDefinition<T, SortType>>, pluginOptions: TablePluginOptions<T> | undefined) => ReactNode; | ||
postRowRender?: (renderedRow: ReactNode, item: T, columns: Array<Paths<T> | ColumnDefinition<T, SortType>>, pluginOptions: TablePluginOptions<T> | undefined) => ReactNode; | ||
/** | ||
@@ -21,0 +21,0 @@ * Allows a plugin to inject a column at the position. Default position is |
import { ReactNode } from "react"; | ||
import { ColumnDefinition } from "../components/columns"; | ||
import { ColumnDefinition, Paths } from "../components/columns"; | ||
@@ -32,3 +32,3 @@ export interface TablePluginOptions<T> {} | ||
item: T, | ||
columns: Array<keyof T | ColumnDefinition<T, SortType>>, | ||
columns: Array<Paths<T> | ColumnDefinition<T, SortType>>, | ||
pluginOptions: TablePluginOptions<T> | undefined | ||
@@ -35,0 +35,0 @@ ) => ReactNode; |
{ | ||
"name": "morse-react-tables", | ||
"version": "4.1.2-alpha.3", | ||
"version": "4.1.2-alpha.4", | ||
"description": "Patterns for building tables", | ||
@@ -21,3 +21,3 @@ "repository": { | ||
"morse-css": "4.1.2", | ||
"morse-react": "4.1.2-alpha.3", | ||
"morse-react": "4.1.2-alpha.4", | ||
"react": "^18.0.0", | ||
@@ -45,3 +45,3 @@ "react-dom": "^18.0.0", | ||
], | ||
"gitHead": "7270dec292c892145342d6aa11fa0f52af0e324f" | ||
"gitHead": "41ab4dc4b83c1979875582fc2f773cae254f0c31" | ||
} |
115672