Skip to main content
zerotal

Documentation


Documentation / @zerotal/admin / index / ListOptions

Interface: ListOptions

Defined in: admin/src/Resource.ts:125

Properties

page?

optional page?: number

Defined in: admin/src/Resource.ts:126


perPage?

optional perPage?: number

Defined in: admin/src/Resource.ts:127


optional search?: string

Defined in: admin/src/Resource.ts:128


sortBy?

optional sortBy?: string

Defined in: admin/src/Resource.ts:129


sortDir?

optional sortDir?: "asc" | "desc"

Defined in: admin/src/Resource.ts:130


modifyQuery?

optional modifyQuery?: QueryModifier

Defined in: admin/src/Resource.ts:132

Scope the base query before search/sort/pagination (e.g. the active tab).


trashed?

optional trashed?: "with" | "only"

Defined in: admin/src/Resource.ts:134

Soft-delete scope: include trashed (with) or only trashed (only).


thenSort?

optional thenSort?: readonly object[]

Defined in: admin/src/Resource.ts:139

Tie-breakers applied after the primary sort, in order. "By status, then newest first" is two entries rather than a bespoke query.