-
17 Oct 2011 6:36 PM #1
Tips
Tips
In the tips section, when I add
the quotes in the renderer disappear when I export, so the code looks likePHP Code:{
trackMouse: true,
width: 225,
height: 28,
renderer: function(storeItem, item) {
this.setTitle(storeItem.get('distribution') + ' $' + Ext.util.Format.number(storeItem.get('pamount'),'0,000') + ' (' + storeItem.get('prcnt') + '%)');
}
}
and my code does not work. Is there anyway to fix this?PHP Code:{
trackMouse: true,
width: 225,
height: 28,
renderer: function(storeItem, item) {
this.setTitle(storeItem.get(distribution) + $ + Ext.util.Format.number(storeItem.get(pamount),0,000) + ( + storeItem.get(prcnt) + %));
}
}
-
17 Oct 2011 6:45 PM #2
-
24 Oct 2011 5:35 AM #3
Hi,
I've got a similar issue, but this time the quotes are fine, but spaces are getting a bit screwed up:
I enter this in the tooltip section of a chart series:
Note that I added the html nbsp's to get spaces in there, without it spaces disappear. However the fun starts in the format of the date, it suddenly adds spaces after all ":"s.. Same with title actually.PHP Code:{
trackMouse: true,
renderer: function(storeItem, item) {
this.setTitle(storeItem.get('project') + ':');
this.update(storeItem.get('sent') + ' sent documents at ' + Ext.util.Format.date(storeItem.get('inserttime'),'Y-m-d H:i:s'));
}
}
I get this out in code:
Using 1.2.2 build 48.PHP Code:tips: {
trackMouse: true,
renderer: function(storeItem,
item){
this.setTitle(storeItem.get('project') + ': ');
this.update(storeItem.get('sent') + ' sent documents at ' + Ext.util.Format.date(storeItem.get('inserttime'),'Y-m-dH: i: s'));
}
},


Reply With Quote