@mai3/phaser-sdk
Version:
A UI component library based on the Phaser game engine
18 lines • 757 B
TypeScript
import { BaseScene } from "../game";
import { BaseConfig, ListViewConfig } from "../types";
import { ScrollView } from "./ScrollView";
import { Container } from "./Container";
export declare class ListView extends ScrollView<ListViewConfig> {
private _lastItem?;
constructor(scene: BaseScene, config: ListViewConfig);
updateConfig(config?: ListViewConfig): void;
addChild(child: Container): Container;
addItems(childConfigs: BaseConfig[][]): void;
private calculateNextItemPosition;
setChildren(childConfigs?: BaseConfig[]): void;
setItemDatas(itemDatas: BaseConfig[][]): void;
reDraw(config: ListViewConfig): void;
updateItems(): void;
destroy(fromScene?: boolean): void;
}
//# sourceMappingURL=ListView.d.ts.map