[list.js] Add alphabet option (#41952)

See: https://listjs.com/api/#sort
This commit is contained in:
Anton Rieder
2020-01-29 13:42:40 -08:00
committed by GitHub
parent bbe645a3a4
commit 66eff04f92
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -12,6 +12,7 @@ declare class List {
matchingItems: object[];
searched: boolean;
filtered: boolean;
alphabet: string;
constructor(element: string|HTMLElement, options?: List.ListOptions, values?: object[]);
+1
View File
@@ -12,6 +12,7 @@ list.visibleItems; // $ExpectType object[]
list.matchingItems; // $ExpectType object[]
list.searched; // $ExpectType boolean
list.filtered; // $ExpectType boolean
list.alphabet; // $ExpectType string
list.add([{ // $ExpectType void
name: "value",