2022-09-30 10:07:34 +08:00
|
|
|
import "./css/CandidateBox.css";
|
|
|
|
import Utilities from "../services/Utilities";
|
2023-01-04 14:48:06 +08:00
|
|
|
import { CandidateBoxParams, CandidateBoxRenderParams, CandidateBoxShowParams, KeyboardOptions } from "./../interfaces";
|
2022-09-30 10:07:34 +08:00
|
|
|
declare class CandidateBox {
|
|
|
|
utilities: Utilities;
|
2023-01-04 14:48:06 +08:00
|
|
|
options: KeyboardOptions;
|
2022-09-30 10:07:34 +08:00
|
|
|
candidateBoxElement: HTMLDivElement;
|
|
|
|
pageIndex: number;
|
|
|
|
pageSize: number;
|
2023-01-04 14:48:06 +08:00
|
|
|
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;
|