mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
Default search bar
This commit is contained in:
@@ -38,6 +38,10 @@ export class SearchBar {
|
||||
this.controlDirective = cd;
|
||||
cd.valueAccessor = this; //ControlDirective should inject CheckboxControlDirective
|
||||
|
||||
if(!this.placeholder) {
|
||||
this.placeholder = 'Search';
|
||||
}
|
||||
|
||||
setTimeout(() => {
|
||||
//console.log('Search bar for list', this.list);
|
||||
this.query = '';
|
||||
|
||||
Reference in New Issue
Block a user