Re: Money Field

2018-07-26 Thread JumpStart
Thank you for pointing that out. Looks great. The only hiccup is if you need to support IE 10 or earlier which, fortunately, I don’t! > On 27 Jul 2018, at 11:43 am, abangkis wrote: > > I found an interesting link > https://flaviocopes.com/how-to-format-number-as-currency-javascript/ > > Using

Re: Money Field

2018-07-26 Thread abangkis
I found an interesting link https://flaviocopes.com/how-to-format-number-as-currency-javascript/ Using the ECMAScript Internationalization API, we can let the browser do the formatting. Now all i need is find/build a mixin that update the value when user typing the input. And to get the real value

Re: Money Field

2018-07-26 Thread abangkis
Hi geoff, thanks for the link. I was actually looking at the money translator when I first researching. But i stumbled on the requirement that it will format the entry when user typing the value. I looked it up, some suggest it can be done using javascript. So I started looking at mixins. The cur

Re: Money Field

2018-07-26 Thread JumpStart
You’ll find some techniques in here: http://jumpstart.doublenegative.com.au/jumpstart/examples/input/augmentingtranslators http://jumpstart.doublenegative.com.au/jumpstart/examples/input/contributingtranslato

Money Field

2018-07-26 Thread abangkis
Hi, i want to create a money/currency field but get confused on what the right approach. I've been looking at custom validator, translator, mixin, even extending tapestry TextField it self. Basically the requirements is: - When the user type 10, it will be shown as a certain format (ex: 100.0