Skip to content

Commit 548aa5f

Browse files
committed
crud: add PerPageAvailable api
1 parent 3a87372 commit 548aa5f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

internal/comp/crud.go

+5
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,11 @@ func (c Crud) PerPage(value int) Crud {
266266
return c.set("perPage", value)
267267
}
268268

269+
// PerPageAvailable sets the available options for items per page
270+
func (c Crud) PerPageAvailable(value ...int) Crud {
271+
return c.set("perPageAvailable", value)
272+
}
273+
269274
// PerPageField sets the field name for specifying items per page
270275
func (c Crud) PerPageField(value string) Crud {
271276
return c.set("perPageField", value)

0 commit comments

Comments
 (0)