DropdownPage

data class DropdownPage<T>(val options: List<DropdownOption<T>>, val hasMore: Boolean)

One batch of options for a dropdown control that loads data in pages.

There is no page count or result count here, and there should not be: to provide them, the source would have to count the whole set, i.e. run a second query next to the one that runs anyway - and while loading during scrolling nobody looks at that number. It is enough to know whether there is more to load, and that shows in the extra row fetched beyond the page size.

Type Parameters

T

type of the option values.

Constructors

Link copied to clipboard
constructor(options: List<DropdownOption<T>>, hasMore: Boolean)

Properties

Link copied to clipboard

Whether there is anything after this page.

Link copied to clipboard

The options of this page, already trimmed to the page size.