simple-keyboard/build/components/CandidateBox.d.ts

16 lines
695 B
TypeScript
Raw Normal View History

2022-09-30 10:07:34 +08:00
import "./css/CandidateBox.css";
import Utilities from "../services/Utilities";
import { CandidateBoxParams, CandidateBoxRenderParams, CandidateBoxShowParams, KeyboardOptions } from "./../interfaces";
2022-09-30 10:07:34 +08:00
declare class CandidateBox {
utilities: Utilities;
options: KeyboardOptions;
2022-09-30 10:07:34 +08:00
candidateBoxElement: HTMLDivElement;
pageIndex: number;
pageSize: number;
constructor({ utilities, options }: CandidateBoxParams);
2022-09-30 10:07:34 +08:00
destroy(): void;
show({ candidateValue, targetElement, onSelect, }: CandidateBoxShowParams): void;
renderPage({ candidateListPages, targetElement, pageIndex, nbPages, onItemSelected, }: CandidateBoxRenderParams): void;
}
export default CandidateBox;