on 10-19-2015 8:21 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
another way to do this is
text: {
parts: ["i18n>deliverydate", "OrderDate"],
formatter: function(i18nString, orderDate) {
return i18nString.replace('{0}', com.vikalp.dealermgmt.util.Formatter.OrderDate.call(null, orderDate));
}
}
// assuming that your have i18n as the resource model
// deliverydate=Delivered Date: {0}
text: {
path: "OrderDate",
formatter: function(orderDate) {
return 'Delivered Date: ' + com.vikalp.dealermgmt.util.Formatter.OrderDate.call(null, orderDate);
}
}
I prefer the first approach for building enterprise software, we need to have localization of text
Thanks
-D
Hi
I want to decolour the hard-code text Overall Status.?
how can it be possible??
I am going to attach my code.
firstStatus:[
{
text :"OverallStatus: {OverallStatus}",
state: {
path:"OverallStatus",
formatter:function(id)
{
if(id == "Completely proc")
{
return "Success"
}
if(id=="Not yet process")
{
return "Error"
}
if(id=="Partially proce")
{
return "Warning"
}
} }
thanks and regards
Vishnu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.