aurelia / ux

A user experience framework with higher-level capabilities, designed to bring simplicity and elegance to building cross-device, rich experiences.
MIT License
368 stars 55 forks source link

**I'm submitting a feature request** Currency Input #327

Open johntom opened 4 years ago

johntom commented 4 years ago

I'm submitting a feature request OS windows 10 Node Version: 12.18.2 npm6.14.5 yarn 1.22.4 cli 1.3.1 systemjs code https://github.com/bb-harlan/au-input-currency demo https://bb-harlan.github.io/au-input-currency/

The above repo repersents what I consider a perfect currency input component. The value-converter is only enabled when not editing the input box and does not display in editing mode.

Is there a way to do that with ax-input? I currently do the following <ux-input placeholder="Indemnity" value.bind="currentItem.Indemnity | currencyFormat:('0,0.00') & debounce:2000 "...

John

johntom commented 4 years ago

I found https://ilikekillnerds.com/2019/04/masked-inputs-in-aurelia-the-easy-and-reliable-way/ and converted ts to js and using mask. Will attempt to modify ux-input to use mask. John

Alexander-Taran commented 3 years ago

@johntom did you succeed?