Fixed #841 - New Lazy DataTable Demo with Remote Source
parent
4bdebad445
commit
1d1c70827b
|
@ -17,4 +17,8 @@ export default class CustomerService {
|
|||
getCustomersXLarge() {
|
||||
return axios.get('demo/data/customers-xlarge.json').then(res => res.data.data);
|
||||
}
|
||||
|
||||
getCustomers() {
|
||||
return axios.get('https://www.primefaces.org/data/customers').then(res => res.data.customers)
|
||||
}
|
||||
}
|
|
@ -58,7 +58,7 @@ export default {
|
|||
this.loading = true;
|
||||
|
||||
setTimeout(() => {
|
||||
this.customerService.getCustomersLarge().then(data => {
|
||||
this.customerService.getCustomers().then(data => {
|
||||
this.datasource = data;
|
||||
this.totalRecords = data.length,
|
||||
this.customers = this.datasource.slice(0, 10);
|
||||
|
@ -105,7 +105,7 @@ export default {
|
|||
this.loading = true;
|
||||
|
||||
setTimeout(() => {
|
||||
this.customerService.getCustomersLarge().then(data => {
|
||||
this.customerService.getCustomers().then(data => {
|
||||
this.datasource = data;
|
||||
this.totalRecords = data.length,
|
||||
this.customers = this.datasource.slice(0, 10);
|
||||
|
|
Loading…
Reference in New Issue