本文整理汇总了TypeScript中ng-jhipster.JhiParseLinks类的典型用法代码示例。如果您正苦于以下问题:TypeScript JhiParseLinks类的具体用法?TypeScript JhiParseLinks怎么用?TypeScript JhiParseLinks使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了JhiParseLinks类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: onSuccess
private onSuccess(data, headers) {
this.links = this.parseLinks.parse(headers.get('link'));
this.totalItems = headers.get('X-Total-Count');
this.queryCount = this.totalItems;
// this.page = pagingParams.page;
this.complianceEvidenceStatuses = data;
}
示例2: paginateTimeTasks
private paginateTimeTasks(data: ITimeTask[], headers: HttpHeaders) {
this.links = this.parseLinks.parse(headers.get('link'));
this.totalItems = parseInt(headers.get('X-Total-Count'), 10);
for (let i = 0; i < data.length; i++) {
this.timeTasks.push(data[i]);
}
}
示例3: paginateOperations
protected paginateOperations(data: IOperation[], headers: HttpHeaders) {
this.links = this.parseLinks.parse(headers.get('link'));
this.totalItems = parseInt(headers.get('X-Total-Count'), 10);
for (let i = 0; i < data.length; i++) {
this.operations.push(data[i]);
}
}
示例4: onSuccess
private onSuccess(data, headers) {
this.links = this.parseLinks.parse(headers.get('link'));
this.totalItems = headers.get('X-Total-Count');
for (let i = 0; i < data.length; i++) {
this.operations.push(data[i]);
}
}
示例5: paginateStars
private paginateStars(data, headers) {
this.links = this.parseLinks.parse(headers.get('link'));
this.totalItems = parseInt(headers.get('X-Total-Count'), 10);
for (let i = 0; i < data.length; i++) {
this.stars.push(data[i]);
}
}
示例6: onSuccess
private onSuccess(data, headers) {
this.links = this.parseLinks.parse(headers.get('link'));
this.totalItems = headers.get('X-Total-Count');
this.queryCount = this.totalItems;
// this.page = pagingParams.page;
this.customers = data;
}
示例7: paginateRestaurantes
protected paginateRestaurantes(data: IRestaurante[], headers: HttpHeaders) {
this.links = this.parseLinks.parse(headers.get('link'));
this.totalItems = parseInt(headers.get('X-Total-Count'), 10);
this.restaurantes = data;
}
示例8: paginateCartaoCreditos
protected paginateCartaoCreditos(data: ICartaoCredito[], headers: HttpHeaders) {
this.links = this.parseLinks.parse(headers.get('link'));
this.totalItems = parseInt(headers.get('X-Total-Count'), 10);
this.cartaoCreditos = data;
}
示例9: paginateMunicipios
protected paginateMunicipios(data: IMunicipio[], headers: HttpHeaders) {
this.links = this.parseLinks.parse(headers.get('link'));
this.totalItems = parseInt(headers.get('X-Total-Count'), 10);
this.municipios = data;
}
示例10: paginateFornecedors
protected paginateFornecedors(data: IFornecedor[], headers: HttpHeaders) {
this.links = this.parseLinks.parse(headers.get('link'));
this.totalItems = parseInt(headers.get('X-Total-Count'), 10);
this.fornecedors = data;
}