Default cell renderer
(ctx CellContext[T])
| 170 | |
| 171 | // Default cell renderer |
| 172 | func defaultCellRenderer[T any](ctx CellContext[T]) any { |
| 173 | if ctx.Value == nil { |
| 174 | return vdom.H("span", map[string]any{ |
| 175 | "className": "text-gray-500", |
| 176 | }, "-") |
| 177 | } |
| 178 | |
| 179 | return vdom.H("span", nil, fmt.Sprintf("%v", ctx.Value)) |
| 180 | } |
| 181 | |
| 182 | // Default header renderer |
| 183 | func defaultHeaderRenderer(ctx HeaderContext) any { |
no test coverage detected