(
label: string,
onSubmit: (str: string[]) => void,
selections: AsyncMultiSelect["searchFunc"],
owner: Options,
{defaultValues = []}: {defaultValues: searchRes[]} = {defaultValues: []},
)
| 488 | if (this.label) { |
| 489 | const span = document.createElement("span"); |
| 490 | span.classList.add("inlinelabel"); |
| 491 | span.textContent = this.label; |
| 492 | div.append(span); |
| 493 | } |
| 494 | const button = document.createElement("button"); |
| 495 | button.textContent = this.textContent; |
| 496 | button.onclick = this.onClickEvent.bind(this); |
| 497 | this.buttonHtml = button; |
| 498 | div.append(button); |
| 499 | return div; |
| 500 | } |
| 501 | private onClickEvent() { |
| 502 | this.onClick(); |
| 503 | } |
| 504 | watchForChange() {} |
| 505 | submit() {} |
| 506 | } |
nothing calls this directly
no outgoing calls
no test coverage detected