@for (columnType of wappTreeTableObject.columnTypes!; track $index) {
@if (columnType == tableColumnTypes.Image) {
@if (readProperty(rowData, wappTreeTableObject.columns[$index].field)) {
![]()
}
|
}
@if (columnType == tableColumnTypes.Text) {
{{ readProperty(rowData, wappTreeTableObject.columns[$index].field) }}
|
}
@if (columnType == tableColumnTypes.Number) {
{{ readProperty(rowData, wappTreeTableObject.columns[$index].field) }}
|
}
@if (columnType == tableColumnTypes.Percentage) {
{{ readProperty(rowData, wappTreeTableObject.columns[$index].field) | wappPercentage }}
|
}
@if (columnType == tableColumnTypes.Currency) {
{{ readProperty(rowData, wappTreeTableObject.columns[$index].field) | wappCurrency }}
|
}
@if (columnType == tableColumnTypes.Badge) {
|
}
@if (columnType == tableColumnTypes.Boolean) {
|
}
@if (columnType == tableColumnTypes.Date) {
{{ dateConversionService.formatUTCDate(readProperty(rowData, wappTreeTableObject.columns[$index].field)) | wappDate }}
|
}
@if (columnType == tableColumnTypes.ShortDate) {
{{ dateConversionService.formatUTCDate(readProperty(rowData, wappTreeTableObject.columns[$index].field)) | wappDate : wappDateFormat.d }}
|
}
@if (columnType == tableColumnTypes.LongDate) {
{{ dateConversionService.formatUTCDate(readProperty(rowData, wappTreeTableObject.columns[$index].field)) | wappDate : wappDateFormat.D }}
|
}
@if (columnType == tableColumnTypes.GeneralDateTimeShortTime) {
{{ dateConversionService.formatUTCDate(readProperty(rowData, wappTreeTableObject.columns[$index].field)) | wappDate : wappDateFormat.g }}
|
}
@if (columnType == tableColumnTypes.GeneralDateTimeLongTime) {
{{ dateConversionService.formatUTCDate(readProperty(rowData, wappTreeTableObject.columns[$index].field)) | wappDate : wappDateFormat.G }}
|
}
}
@for (button of wappTreeTableObject.actionButtons; track button) {
}
@if (wappTreeTableObject.hasDeleteButton) {
}
|