server on server should of had a defualt paging on initial select.
This commit is contained in:
parent
e7f9f2c52d
commit
e3b24915e6
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@poweredsoft/ng-select",
|
"name": "@poweredsoft/ng-select",
|
||||||
"version": "0.0.5",
|
"version": "0.0.6",
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@angular/common": "^9.1.9",
|
"@angular/common": "^9.1.9",
|
||||||
"@angular/core": "^9.1.9"
|
"@angular/core": "^9.1.9"
|
||||||
|
@ -116,7 +116,7 @@ export class NgSelectComponent implements OnInit, OnDestroy {
|
|||||||
debounceTime(500) // this is for delaying searching speed
|
debounceTime(500) // this is for delaying searching speed
|
||||||
).subscribe(searchTerm => this.refreshDataSource(searchTerm, 1, 100)); // page: 1, pageSize: 50
|
).subscribe(searchTerm => this.refreshDataSource(searchTerm, 1, 100)); // page: 1, pageSize: 50
|
||||||
|
|
||||||
this.refreshDataSource(); //send the query to server to sorting & filtering by default
|
this.refreshDataSource(null, 1, 100); //send the query to server to sorting & filtering by default
|
||||||
}
|
}
|
||||||
|
|
||||||
get selectedModel() {
|
get selectedModel() {
|
||||||
|
Loading…
Reference in New Issue
Block a user