(event: Event)
| 33 | } |
| 34 | |
| 35 | private handleInput(event: Event) { |
| 36 | const parsedIds = (event.currentTarget as HTMLInputElement).value |
| 37 | .split(',') |
| 38 | .map((id) => id.trim()) |
| 39 | |
| 40 | if (parsedIds.every((id) => /^\d+$/.test(id))) { |
| 41 | this.ids = parsedIds.map(Number) |
| 42 | this.error = '' |
| 43 | } else { |
| 44 | this.error = 'Invalid.. only use numbers and comma' |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | render() { |
| 49 | return html` |
nothing calls this directly
no outgoing calls
no test coverage detected