PDA

View Full Version : DateTimePicker (calendarPicker) in ST2 (possible autoloader issue?)



kalor
12 Apr 2012, 8:32 PM
I had a ST1 project that included this DateTimePicker:

http://www.sencha.com/forum/showthread.php?148169-Ext.ux.form.CalendarTimePicker-DEMO-amp-discussion

I (http://www.sencha.com/forum/showthread.php?148169-Ext.ux.form.CalendarTimePicker-DEMO-amp-discussion)'ve (painstakingly) upgraded the project to ST2. I thought I'd read somewhere that ST2 has a datetimepicker but now can't find it and can't see it in the ST2 docs, so I'm forced to try the ST1 method. However ST is not recognising it.

Because I also have issues with Google Maps in the upgrade, I'm wondering if it's the new way of referencing .js files in the index.html? I've added them in before the autoloader reference like this:


<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script> <script src="sencha-touch-all-debug.js" type="text/javascript"></script> <script type="text/javascript" src="phonegap-1.1.0.js"></script> <script type="text/javascript" src="calendarPicker.js"></script> <script id="microloader" type="text/javascript" src="./microloader/development.js"></script>


Should I be adding these files in one of the loader JSON files instead somehow?

mitchellsimoens
13 Apr 2012, 5:49 AM
You shouldn't edit index.html to add your classes. Ext.Loader will load your files dynamically during development. Each class should have it's own file and the file structure should match the class name.