| 1 | import { AutoCompleteOption } from './AutoCompleteOption.js'; |
| 2 | |
| 3 | export class BlankAutoCompleteOption extends AutoCompleteOption { |
| 4 | /** |
| 5 | * @param {string} name |
| 6 | */ |
| 7 | constructor(name) { |
| 8 | super(name); |
| 9 | this.dom = this.renderItem(); |
| 10 | } |
| 11 | |
| 12 | get value() { return null; } |
| 13 | |
| 14 | |
| 15 | renderItem() { |
| 16 | const li = document.createElement('li'); { |
| 17 | li.classList.add('item'); |
| 18 | li.classList.add('blank'); |
| 19 | li.textContent = this.name; |
| 20 | } |
| 21 | return li; |
| 22 | } |
| 23 | |
| 24 | |
| 25 | renderDetails() { |
| 26 | const frag = document.createDocumentFragment(); |
| 27 | return frag; |
| 28 | } |
| 29 | } |