Little bit confused.. can mixin bind translator to textfield? Or can translator attach javascript after render?
I'll give example of what i want in general: <input t:type="textfield" t:mixins="maskededit" t:mask="+9-(999)-999-99-99? #99-99-99" t:id="phone" t:bind-unmasked="true" t:value="profile.phone" /> which should attach JS to textfield to allow masked input with given mask, but bind unmasked value to profile.phone property. On Thu, Apr 4, 2013 at 3:30 PM, Geoff Callender < [email protected]> wrote: > Have you looked into using a translator instead of a mixin? > > > http://jumpstart.doublenegative.com.au/jumpstart/examples/input/contributingtranslators > Example (4) in > http://jumpstart.doublenegative.com.au/jumpstart/examples/input/augmentingtranslators > > Geoff > > On 04/04/2013, at 9:40 PM, Dmitriy Vsekhvalnov wrote: > > > Hi everyone, > > > > is it possible to have mixin which will intercept form submission (on T5 > > side, not in browser) and overwrite input field value coming from client, > > before the value bound to input's property? > > > > I'm using maskedit mixing for inputs, but for some values i want unmasked > > data to go to database. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
