@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
52 lines • 1.1 kB
TypeScript
export default DropDownSelectionView;
/**
* @template T
*/
declare class DropDownSelectionView<T> extends View<HTMLElement> {
/**
* @template T
* @param {List<T>} model
* @param {function(T):string} [transform]
* @param {function(T)} [changeListener]
*/
constructor(model: List<T_1>, { transform, changeListener }?: (arg0: T_1) => string);
model: List<T_1>;
el: HTMLSelectElement;
transfrom: any;
/**
* ID mapping
* @private
* @type {Map<T, string>}
*/
private mapping;
/**
* @private
* @param {String} el
* @param {number} index
*/
private handleAdded;
/**
* @private
* @param {string} el
*/
private handleRemoved;
clearOptions(): void;
/**
*
* @param {string} id
* @return {T}
*/
getValueById(id: string): T;
/**
*
* @return {T}
*/
getSelectedValue(): T;
/**
*
* @param {T} v
*/
setSelectedValue(v: T): void;
}
import View from '../View.js';
//# sourceMappingURL=DropDownSelectionView.d.ts.map