ListWindow beta
Interface of @v12-engine/client/kit
export interface ListWindow<T>A long list drawn a page at a time (master plan FB3): shown() is the first page of the items, and a page more each time sentinel (an element put after what is drawn) comes into view; it starts over as the items change. For a grid or a list of thousands, where what is on the screen costs and the rest should cost nothing: a tile's picture is not asked for, its observer not made, until it is drawn
Members
left
left: Accessor<number>;How many are not drawn yet
more
more(): void;Draws a page more
page
readonly page: number;How many items a page holds, the page the window was made with (200 when left out)
sentinel
sentinel(element: HTMLElement): void;A ref for an element after the items: as it comes into view, a page more is drawn
shown
shown: Accessor<readonly T[]>;The items drawn now: the first page, and more as the end came into view
upTo
upTo(index: number): void;Draws up to and past the item at this place in the list: for one revealed deep in it