PDA

View Full Version : DataView Items + Ext.util.Format.ellipsis (any way to do this?)



Maxeta
31 Oct 2013, 9:47 AM
Is there any way to use Ext.util.Format.ellipsis inline within a DataView template in order to truncate long strings coming in from my store? I need the full string as well as the truncated version, but I don't necessarily want to put the truncated string into my store (if there is a way around it).

mitchellsimoens
7 Nov 2013, 12:26 PM
You can do something like this in your template:


{[Ext.util.Format.ellipsis(values.foo, 50)]}