-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
num-fixed as option (not filter) #38
Comments
Hey |
thanks. Here is an example: https://plnkr.co/edit/zenr0zqZF1Q1RGZWsQLx?p=preview |
Please check latest version, I think I done it. |
Thanks, it works! However in my example awnum was, wrongly, set to 'true'. This triggers the error 'strategy is undefined' |
Reopened, because using num-fixed, every value has decimal separator so typing separator is ignored. https://plnkr.co/edit/7Ss7ad0dSOWY7choo7ei?p=preview As you can see, user have to manually move after separator using arrow key or clicking. |
Thx for your feedback. Usually new functionality introduce some border cases. I just fixed this one. |
THere is one issue with fixed option #41 |
It's not clear to me how to use numFixed filter in an input field built like this:
<input awnum num-int="6" num-fract="2" num-sep="," num-thousand="true" num-thousand-sep="." num-neg="false" num-round="round" num-pos="true" num-prepend="" num-append="" ng-trim="false" ng-init="moduloCtrl[dynindex] = 2.00" ng-model="moduloCtrl[dynindex]" />
This field will show '2' and not ('2,00').
Debugging dynamic-number.js, in filterModelValue function I can see that numFixed is by default set to false. To obtain the desired result I have to set numFixed variable to true. How I should use numFixed filter in this case? If not possible, is it possible to set the default value of numFixed to true or also better make it work also as option (attribute of input text field)?
The text was updated successfully, but these errors were encountered: