5 Apr 2013 6:43 AM #1
Exclude things from themes?
is it possible to exclude things from themes? We use ExtJS 4.2 and Sencha Touch 2.2. Our ExtJS Theme extends ext-theme-neptune.
For example, we do not use the datepicker or the accordion etc. Is it possible to remove such things from the resulting css?
8 Apr 2013 7:07 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
One of the reasons why we moved to packages is for the inheritance. If you aren't using it in your app then it shouldn't include it in the theme.
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services firstname.lastname@example.org
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.
8 Apr 2013 8:00 AM #3
I investigated a little bit. It seams, that sencha cmd generates two css files:
The all-css contains no datepicker. But the example-css does. The example file is more than twice as large as the all file, so I guess, that it contains everything. Also build/MyApp/production/resources/images contains the image files for the datepicker. I guess, because they are needed by the example-css.
In the html file only the all-css is included. So I guess, that the reason is the example-css. Why is it there? How can I avoid its creation?
21 Feb 2015 11:08 AM #4
I just want to see the neutral theme. I know I won't be using a datepicker.
It would be easier to exclude it than work my way through one compile per missing variable