jQWidgets Forums
jQuery UI Widgets › Forums › Editors › NumberInput › Copy / Paste functionality
Tagged: maskedinput, max, number, numberinput
This topic contains 3 replies, has 2 voices, and was last updated by Peter Stoev 12 years, 2 months ago.
-
Author
-
Hello,
Is there already functionality to copy/paste values in numberInput and maskedInput ?
I read older topics and you said that this option will be enabled since 2.5, now is 2.7 and still doesn’t work.In other hand I found bug in numberInput:
I initialize numberInput with parametrs (inputMode: ‘simple’, textAlign: ‘left’, decimalDigits: 0, digits: 10, groupSize: 10, decimalSeparator: ”, groupSeparator: ”, promptChar: ”). Theoretically I could put 10 digit integer without decimals but when I put 10 digit number (example: ‘1234567890’ (10digits) in value I get ‘99999999’ (8 digits). Simple way to repair is to set max parametr (max: 9999999999)(10digits).Btw. finally, my company has licensed your product so I gonna have even more questions in near future :). We write web apps, meybe we will send some case studies.
Best Regards,
GabrielHi Gabriel,
1. Copy/Paste in the widget works as expected. If you have an issue with that behavior, please provide step by step instructions which demonstrate it.
2. The value is restricted between “min” and “max”. So if you enter a value which is out of the range, it will be set to either min or max.Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comPeter,
What are defaults for min/max? If I dont give those values I can put max 8 digits value. (from documentation default is 0)
I’ve got next problem, I wanna use 22 digit number. Set parametrs to 22 digit and max 9999999999999999999999 but still can use max value to 18 digits.Is there possibility to make work with numberInput/maskedInput ?
Copy/Paste still doesnt work (tested on many browsers). I will try prepare online example later.
Hi gabrynio,
1. For copy/paste, I use Ctrl+C and Ctrl+V i.e select a value from the input press Ctrl + C, and paste in on other place in the input. If you want Clipboard Copy/Paste like on the desktop then it will not work, because web browsers do not support Clipboard operations. Only IE supports Clipboard.
2. You cannot display 22 digit number, because it will not be parsed with parseFloat as it will be out of the float range of values. In addition, MaskedInput and NumberInput are different widgets. If you have questions about MaskedInput, please post them in the MaskedInput Forum.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.