Last active
October 22, 2020 23:40
-
-
Save Sutil/438cdd59ce927b86ab31f932d639d782 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { TemplateRef } from '@angular/core'; | |
export interface ColunaTabelaAninhada { | |
/** | |
* Texto que aparece no cabeçalho da coluna | |
*/ | |
cabecalho: string; | |
/** | |
* CSS para estilização do cabeçalho da coluna | |
*/ | |
classeCssCabecalho?: string; | |
/** | |
* Conteúdo da célula para essa coluna dado uma linha. | |
* Pode informar uma `função` que recebe a linha e retorna o conteúdo da linha | |
* para essa coluna ou pode informar um `TemplateRef` que recebe a linha como contexto | |
* | |
* | |
* @example | |
* ```js | |
* (linha) => linha.propriedadeDaLinha | |
* ``` | |
* ou | |
* ```html | |
* <ng-template #colunaDeAcao let-linha="linha" > | |
* <button (click)="mostrarDetalhes(linha)" >Detalhes</button> | |
* </ng-template> | |
* ``` | |
* | |
*/ | |
conteudoDaCelula: TemplateRef<any> | ((linha:any) => string); | |
/** | |
* CSS para estilização da coluna | |
*/ | |
classeCss?: string; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment