-
2 Nov 2012 2:26 AM #1
Over Ride select field
Over Ride select field
I'm a Sencha noob. I am trying to implement this over ride class so that I can either have blank or placeholder text in my selectField. I've added a JS Resource would this be the best way to do it? I can't seem to get it to work. Either I get a blank white screen or it doesn't work at all. Do I need to implement a store for this to work? My biggest question is with everything correct in my program will creating a js file with my override and including it as a JS Resource work correctly?
Thanks.
-
2 Nov 2012 10:52 AM #2
If you've created the select as a top level class you can just click "Create Override" and it will handle loading it for you etc.
If you didn't initially create it as a top level class, you can right click on it and select "Promote to Class" to make it a top level class.Aaron Conran
@aconran
Sencha Architect Development Team
-
4 Nov 2012 10:24 PM #3
Just a friendly advise:
if you get blank screens, a JavaScript debugger is your friend. Install FireBug if you are a Firefox user, use Chrome's Developer Tools or IE's "F12 Developer Tools". In the Console or Network tab (catching misspelling of classes and overrides) you'll find the reason why your Sencha app doesn't run.


Reply With Quote