module Marten::Handlers::RecordListing::ClassMethods
Defined in:
marten/handlers/concerns/record_listing.crInstance Method Summary
-
#model(model : DB::Model.class | Nil)
Allows to configure the model class that should be used to retrieve the list record.
-
#ordering(fields : Array(String | Symbol))
Allows to configure the list of fields to use to order the records.
-
#ordering(*fields : String | Symbol)
Allows to configure the list of fields to use to order the records.
-
#page_number_param(param : String | Symbol)
Allows to configure the name of the page number parameter.
-
#page_size(page_size : Int32 | Nil)
Allows to configure the page size to use if records should be paginated.
Instance Method Detail
Allows to configure the model class that should be used to retrieve the list record.
Allows to configure the list of fields to use to order the records.
Allows to configure the list of fields to use to order the records.
Allows to configure the name of the page number parameter.
Allows to configure the page size to use if records should be paginated.
If the specified page size is nil
, it means that records won't be paginated.