I am having a problem using globalize.js 1.x with jQuery UI spinner.
I would like to display appropriate currency symbol next to the number in spinner. But I am getting the error from following two functions:
Globalize.format
Globalize.parseFloat
Apparently, these two function is not available in Globalize 1.x. instead, they have introduced new functions:
.parseNumber( value [, options])
.formatNumber( value [, options] )
.formatCurrency( value, currency [, options] )
.formatDate( value, pattern )
I have tried to use these function in jQuery UI source code, but it has broken spinner altogether.
Any idea how to solve this problem?
I am using:
jQuery UI - v1.12.1 Globalize v1.3.0
If you have a similar problem do as follow:
1.Add Globalize to your app, I have followed the following tutorial and helped a lot:
https://js.devexpress.com/Documentation/Guide/Widgets/Common/UI_Widgets/Localization_-_Use_Globalize/
2.Add jquery UI to your project.
3.Create new javascript file and place it after jquery UI file.
4.add following script to the new js file:
Hope it helps.