Skip to content

Commit 3a87372

Browse files
committed
crud clounm small fix
1 parent d2ca255 commit 3a87372

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

internal/comp/column.go

+6-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func (c Column) Label(value string) Column {
7979
}
8080

8181
// QuickEdit sets the quick edit configuration
82-
func (c Column) QuickEdit(value string) Column {
82+
func (c Column) QuickEdit(value any) Column {
8383
return c.set("quickEdit", value)
8484
}
8585

@@ -167,3 +167,8 @@ func (c Column) Buttons(value ...any) Column {
167167
func (c Column) PopOver(value any) Column {
168168
return c.set("popOver", value)
169169
}
170+
171+
// Type sets the column type, for example: operation
172+
func (c Column) Type(value string) Column {
173+
return c.set("type", value)
174+
}

0 commit comments

Comments
 (0)