@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
15 lines • 734 B
TypeScript
export class NativeListController extends View<HTMLElement> {
/**
* @template T
* @param {List<T>} model
* @param {(T)=>View} elementViewFactory
* @param {()=>T} elementFactory
* @param {string[]} [classList]
* @param {function(List<T>, T)} [operationAdd] Allows user to supply a special operation for adding an element to the list
* @param {function(List<T>, T)} [operationRemove] Allows user to supply a special operation for removing an element from the list
*/
constructor({ model, elementViewFactory, elementFactory, classList, operationAdd, operationRemove }: List<T>);
el: HTMLDivElement;
}
import View from "../../View.js";
//# sourceMappingURL=NativeListController.d.ts.map