mtrl-addons 0.2.6 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -342,6 +342,13 @@ export interface ListAPI<T extends ListItem = ListItem> {
|
|
|
342
342
|
clear(): void;
|
|
343
343
|
/** Add items */
|
|
344
344
|
addItems(items: T[], position?: "start" | "end"): void;
|
|
345
|
+
/**
|
|
346
|
+
* Add a single item to the collection
|
|
347
|
+
* Convenience method that wraps addItems for single item use case
|
|
348
|
+
* @param item - Item to add
|
|
349
|
+
* @param position - Where to add item: "start" (default) or "end"
|
|
350
|
+
*/
|
|
351
|
+
addItem(item: T, position?: "start" | "end"): void;
|
|
345
352
|
/** Remove items by indices */
|
|
346
353
|
removeItems(indices: number[]): void;
|
|
347
354
|
/**
|
|
@@ -575,8 +582,6 @@ export interface VListConfig<T extends ListItem = ListItem> {
|
|
|
575
582
|
orientation?: "vertical" | "horizontal";
|
|
576
583
|
animation?: boolean;
|
|
577
584
|
measureItems?: boolean;
|
|
578
|
-
/** Stop scrolling when clicking on the viewport (default: true) */
|
|
579
|
-
stopOnClick?: boolean;
|
|
580
585
|
};
|
|
581
586
|
performance?: {
|
|
582
587
|
recycleElements?: boolean;
|
|
@@ -55,8 +55,6 @@ export interface ViewportConfig {
|
|
|
55
55
|
orientation?: "vertical" | "horizontal";
|
|
56
56
|
animation?: boolean;
|
|
57
57
|
sensitivity?: number;
|
|
58
|
-
/** Stop scrolling when clicking on the viewport (default: true) */
|
|
59
|
-
stopOnClick?: boolean;
|
|
60
58
|
};
|
|
61
59
|
scrollbar?: {
|
|
62
60
|
enabled?: boolean;
|