This commit is contained in:
@@ -154,14 +154,26 @@ Vue.filter("shortdatelocalized", function vueFilterShortDateLocalized(value) {
|
||||
.format(locale.format().shortDateAndTime);
|
||||
});
|
||||
|
||||
//TODO: These need more work to format as proper numeric value (comma versus decimal etc)
|
||||
|
||||
Vue.filter("currency", function vueFilterCurrency(value) {
|
||||
if (!value) return "";
|
||||
return locale.format().currencySymbol + value;
|
||||
});
|
||||
|
||||
Vue.filter("decimal", function vueFilterDecimal(value) {
|
||||
if (!value) return "";
|
||||
return "dec.fltr." + value;
|
||||
});
|
||||
|
||||
Vue.filter("boolastext", function vueFilterBoolAsText(value) {
|
||||
if (!value) return "";
|
||||
return value ? "Yes" : "Nope";
|
||||
return value ? "Yup" : "Nope";
|
||||
});
|
||||
|
||||
Vue.filter("enum", function vueFilterDecimal(value, enumtype) {
|
||||
if (!value) return "";
|
||||
return enumtype + "." + value;
|
||||
});
|
||||
|
||||
/////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user