Merge pull request #179 from Pax1601/atc-mission-board

Atc mission board
This commit is contained in:
Pax1601
2023-04-11 15:23:09 +02:00
committed by GitHub
15 changed files with 911 additions and 445 deletions

View File

@@ -83,6 +83,15 @@ export class Dropdown {
}));
}
selectText( text:string ) {
const index = [].slice.call( this.#options.children ).findIndex( ( opt:Element ) => opt.querySelector( "button" )?.innerText === text );
if ( index > -1 ) {
this.selectValue( index );
}
}
selectValue(idx: number)
{
if (idx < this.#optionsList.length)