You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ui/src/form/fields/SearchInputField.component.ts

20 lines
578 B

import {TextInputFieldComponent} from './TextInputField.component.js'
import {Component} from '../../decorators.js'
@Component('ex-input-search')
export class SearchInputFieldComponent extends TextInputFieldComponent {
protected static html = `
<label>
<span class="label"></span>
<input class="input" type="search">
<small class="error"></small>
</label>
`
render() {
super.render()
this.inputEl.setAttribute('placeholder', `🔎︎ ${this.inputEl.getAttribute('placeholder') || ''}`)
}
}