繁体   English   中英

欧元格式kendo网格列Angular JS

[英]Euro format kendo grid column Angular JS

我在剑道中有一个金额列,该列以美元格式显示,相应的列详细信息为

{
  field: 'INVOICE_AMOUNT_ORIGINAL',
  title: $translate.instant('invoiceAmount'),
  format: '{0:n}',
  headerTemplate: '{{ \'invAmount\' | translate }}',
  attributes: {
    style: 'text-align: right;'
  },
  width: 115
},

我现在希望将此格式更改为欧元格式,从kendo纪录片中读取后,我在上面的代码中尝试使用以下格式:'{0:c}',但是它在前面给出了美元符号,我该如何转换格式为欧元。 我不希望任何转换,而只是从美元到欧元的格式

我认为您必须像这样定义货币:

---
[format]="{ style: 'currency', currency: 'EUR' }",
---

另一个解决方案可能是这种方法:

 ---
 format: '{0:c3}', // converts to euro (according to the site)
 ---

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM