Helper function to safely call RowClassName function
(rowClassNameFunc func(ctx RowContext[T]) string, rowCtx RowContext[T])
| 195 | |
| 196 | // Helper function to safely call RowClassName function |
| 197 | func makeRowClassName[T any](rowClassNameFunc func(ctx RowContext[T]) string, rowCtx RowContext[T]) string { |
| 198 | if rowClassNameFunc == nil { |
| 199 | return "" |
| 200 | } |
| 201 | return rowClassNameFunc(rowCtx) |
| 202 | } |
| 203 | |
| 204 | func MakeTableComponent[T any](componentName string) vdom.Component[TableProps[T]] { |
| 205 | return app.DefineComponent(componentName, genTableRenderFunc[T]) |
no outgoing calls
no test coverage detected