@aria-ui/collection
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

@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;

/@aria-ui/collection/

    Package Sidebar

    Install

    npm i @aria-ui/collection

    Weekly Downloads

    1,110

    Version

    0.0.4

    License

    none

    Unpacked Size

    6.37 kB

    Total Files

    5

    Last publish

    Collaborators

    • ocavue