mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2025-01-20 01:22:59 +08:00
15 lines
639 B
TypeScript
15 lines
639 B
TypeScript
import "./css/CandidateBox.css";
|
|
import Utilities from "../services/Utilities";
|
|
import { CandidateBoxParams, CandidateBoxRenderParams, CandidateBoxShowParams } from "./../interfaces";
|
|
declare class CandidateBox {
|
|
utilities: Utilities;
|
|
candidateBoxElement: HTMLDivElement;
|
|
pageIndex: number;
|
|
pageSize: number;
|
|
constructor({ utilities }: CandidateBoxParams);
|
|
destroy(): void;
|
|
show({ candidateValue, targetElement, onSelect, }: CandidateBoxShowParams): void;
|
|
renderPage({ candidateListPages, targetElement, pageIndex, nbPages, onItemSelected, }: CandidateBoxRenderParams): void;
|
|
}
|
|
export default CandidateBox;
|