Newer
Older
GestionHoteleria / src / app / component / pagination / pagination.component.ts
James Cuadrado on 23 May 2021 525 bytes new repository
import { Component } from '@angular/core';
import { NgbPaginationConfig } from '@ng-bootstrap/ng-bootstrap';

@Component({
	selector: 'app-ngbd-pagination',
	templateUrl: './pagination.component.html'
})
export class NgbdpaginationBasicComponent {
	page = 4;
	page2 = 1;
	currentPage = 3;
	disablepage = 3;
	isDisabled = true;
	pagecustom: 4;
	toggleDisabled() {
		this.isDisabled = !this.isDisabled;
	}

	getPageSymbol(current: number) {
		return ['A', 'B', 'C', 'D', 'E', 'F', 'G'][current - 1];
	}
}