add limit by

This commit is contained in:
2019-10-19 08:48:21 +02:00
parent a3099d4981
commit 24bf7c98e3
15 changed files with 286 additions and 110 deletions

View File

@@ -4,7 +4,8 @@
placeholder="Query"
[formControl]="query"
[matAutocomplete]="auto"
(keyup)="onKey($event)"/>
(keyup)="onKey($event)"
(focus)="onKey($event)"/>
<mat-autocomplete
#auto="matAutocomplete"
[displayWith]="displaySuggestion"

View File

@@ -0,0 +1,12 @@
.mat-option {
/*height: 1.5em;
line-height: 1.5em;
/**/
}
#query-autocomplete-input {
border: solid 1px #ccc;
border-radius: 5px;
box-sizing: border-box;
padding: 5px;
}

View File

@@ -11,7 +11,7 @@ import { PlotService, PlotType, AutocompleteResult, Suggestion } from '../plot.s
})
export class QueryAutocompleteComponent implements OnInit {
@Input() query = new FormControl();
@Input() query = new FormControl('');
suggestions = new FormControl();