Method
addAsyncMultiSelect
(
label: string,
onSubmit: (str: string[]) => void,
selections: AsyncMultiSelect["searchFunc"],
{defaultValues = [] as searchRes[]} = {},
)
Source from the content-addressed store, hash-verified
| 1473 | this.generateContainer(); |
| 1474 | } else if (this.owner instanceof Options) { |
| 1475 | this.owner.genTop(); |
| 1476 | } else { |
| 1477 | (this.owner as Form).owner.genTop(); |
| 1478 | } |
| 1479 | } else { |
| 1480 | throw new Error("Tried to make a sub menu when the options weren't rendered"); |
| 1481 | } |
| 1482 | } |
| 1483 | addSubOptions(name: string, {ltr = false, noSubmit = false} = {}) { |
| 1484 | const options = new Options(name, this, {ltr, noSubmit}); |
| 1485 | this.subOptions = options; |
| 1486 | this.genTop(); |
| 1487 | return options; |
| 1488 | } |
| 1489 | addSubForm( |
| 1490 | name: string, |
Tested by
no test coverage detected