(query: string)
| 5 | private readonly body: Text; |
| 6 | |
| 7 | constructor(query: string) { |
| 8 | super(); |
| 9 | this.addChild(new Spacer(1)); |
| 10 | this.body = new Text('', 0, 0); |
| 11 | this.addChild(this.body); |
| 12 | this.setQuery(query); |
| 13 | } |
| 14 | |
| 15 | setQuery(query: string) { |
| 16 | this.body.setText(`${theme.queryBg(theme.white(`❯ ${query} `))}`); |