#964 improve amount editor rendering

- fixed: showing currently symbol for the rows (non-complete forms)
- new: currency symbol for the editor label (row editor)
This commit is contained in:
Denys Vuika
2016-11-02 14:32:31 +00:00
parent 736d57cc2e
commit 52b0ae65e8
4 changed files with 23 additions and 4 deletions

View File

@@ -97,7 +97,11 @@ export class DynamicTableWidget extends WidgetComponent {
getCellValue(row: DynamicTableRow, column: DynamicTableColumn): any {
if (this.content) {
return this.content.getCellValue(row, column);
let result = this.content.getCellValue(row, column);
if (column.type === 'Amount') {
return (column.amountCurrency || '$') + ' ' + (result || 0);
}
return result;
}
return null;
}