MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / makeRowClassName

Function makeRowClassName

tsunami/ui/table.go:197–202  ·  view source on GitHub ↗

Helper function to safely call RowClassName function

(rowClassNameFunc func(ctx RowContext[T]) string, rowCtx RowContext[T])

Source from the content-addressed store, hash-verified

195
196// Helper function to safely call RowClassName function
197func 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
204func MakeTableComponent[T any](componentName string) vdom.Component[TableProps[T]] {
205 return app.DefineComponent(componentName, genTableRenderFunc[T])

Callers 1

genTableRenderFuncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected