src/app/components/item-list-base.ts
Oggetto Base ereditato dagli altri
Properties |
|
Methods |
|
Public currentPage |
currentPage:
|
Type : number
|
Default value : 1
|
Defined in src/app/components/item-list-base.ts:23
|
Pagina corrente |
Public customFields |
customFields:
|
Defined in src/app/components/item-list-base.ts:30
|
Campi custom da visualizzare |
Public displayModalDetail |
displayModalDetail:
|
Default value : false
|
Defined in src/app/components/item-list-base.ts:33
|
Public loading |
loading:
|
Default value : true
|
Defined in src/app/components/item-list-base.ts:17
|
Variabile di caricamento |
Public modalItem |
modalItem:
|
Defined in src/app/components/item-list-base.ts:32
|
Public modalType |
modalType:
|
Type : string
|
Defined in src/app/components/item-list-base.ts:34
|
Public totalRecords |
totalRecords:
|
Type : number
|
Defined in src/app/components/item-list-base.ts:11
|
Numero totale dei record proveniente dalle api |
Public displayModalPannel |
displayModalPannel(item: any, type: string)
|
Defined in src/app/components/item-list-base.ts:53
|
Visualizza la modale con le info dell'object richiesto
Returns :
void
|
Public resetModal | ||||||
resetModal(Event: Event)
|
||||||
Defined in src/app/components/item-list-base.ts:41
|
||||||
Reseta la modal sull'evento di chiusura dello stesso
Parameters :
Returns :
void
|
export class ItemListBase {
/**
* Numero totale dei record proveniente dalle api
*
* @type {number}
* @memberof ItemListBase
*/
public totalRecords: number;
/**
*Variabile di caricamento
*
* @memberof ItemListBase
*/
public loading = true;
/**
*Pagina corrente
*
* @memberof ItemListBase
*/
public currentPage = 1;
/**
*Campi custom da visualizzare
*
* @memberof ItemListBase
*/
public customFields;
public modalItem;
public displayModalDetail = false;
public modalType: string;
/**
*Reseta la modal sull'evento di chiusura dello stesso
*
* @param {Event} Event
*/
public resetModal(Event: Event) {
this.displayModalDetail = false;
this.modalItem = null;
this.modalType = null;
}
/**
* Visualizza la modale con le info dell'object richiesto
*
* @param {*} item
* @param {string} type
*/
public displayModalPannel(item: any, type: string) {
this.displayModalDetail = true;
this.modalItem = item;
this.modalType = type;
}
}