()
| 2225 | } |
| 2226 | this.names.set(formName, emoji); |
| 2227 | return emoji; |
| 2228 | } |
| 2229 | addDateInput(label: string, formName: string, {initText = "", required = false} = {}) { |
| 2230 | const dateInput = this.options.addDateInput(label, (_) => {}, { |
| 2231 | initText, |
| 2232 | }); |
| 2233 | this.names.set(formName, dateInput); |
| 2234 | if (required) { |
| 2235 | this.required.add(dateInput); |
| 2236 | } |
| 2237 | return dateInput; |
| 2238 | } |
| 2239 | addTextInput( |
| 2240 | label: string, |
| 2241 | formName: string, |
| 2242 | {initText = "", required = false, password = false, spaceReplace = " ", name = ""} = {}, |
| 2243 | ) { |
| 2244 | const textInput = this.options.addTextInput(label, (_) => {}, { |
| 2245 | initText, |
| 2246 | password, |
| 2247 | spaceReplace, |
nothing calls this directly
no test coverage detected