First commit
This commit is contained in:
20
application/demo/list/item/news.list.item.price.js
Normal file
20
application/demo/list/item/news.list.item.price.js
Normal file
@@ -0,0 +1,20 @@
|
||||
|
||||
import newsPrice from '../../news.price.js';
|
||||
|
||||
import gridViewColumn from '/elements/gridView/gridView.body.row.column.js';
|
||||
|
||||
|
||||
export default class newsListItemPrice extends newsPrice, gridViewColumn{
|
||||
|
||||
create() {
|
||||
|
||||
const formatter = new Intl.NumberFormat('en-US', {
|
||||
style: 'currency',
|
||||
currency: 'EUR',
|
||||
});
|
||||
|
||||
this.text = formatter.format( this.value );
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user