0.0.4 • Published 9 months ago

@aria-ui/collection v0.0.4

Weekly downloads
-
License
-
Repository
-
Last release
9 months ago

@aria-ui/collection

Collection #

constructor

new Collection(items: Iterable<HTMLElement, any, any>, loop?: boolean): Collection

loop

Type: boolean

first

const first: () => null | string;

getElement

const getElement: (value: string) => null | HTMLElement;

getValues

const getValues: () => string[];

last

const last: () => null | string;

next

const next: (value: null | string) => null | string;

prev

const prev: (value: null | string) => null | string;

size

const size: () => number;

ItemFilter #

The filter function to determine if an item should be shown in the collection.

Type: (options: { query: string; value: string }) => boolean

defaultItemFilter #

A simple case-insensitive substring match filter.

function defaultItemFilter(options: { query: string; value: string }): boolean;
0.0.4

9 months ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago