Completed plugins framework

More work required to define all interfaces for the useful classes in the @types folder
This commit is contained in:
Pax1601
2023-09-15 23:07:15 +02:00
parent 588228c050
commit 2f125e3d0e
15 changed files with 244 additions and 531 deletions

View File

@@ -68,6 +68,10 @@ export class Dropdown {
return this.#options.children;
}
addOptionElement(optionElement: HTMLElement) {
this.#options.appendChild(optionElement);
}
selectText(text: string) {
const index = [].slice.call(this.#options.children).findIndex((opt: Element) => opt.querySelector("button")?.innerText === text);
if (index > -1) {