This is a migrated thread and some comments may be shown as answers.

Bare minimum JS/CSS for Switch

3 Answers 143 Views
Switch (Mobile)
This is a migrated thread and some comments may be shown as answers.
JohnVS
Top achievements
Rank 1
JohnVS asked on 09 Sep 2014, 03:58 PM
We are interested in reducing the amount of code needing to load on our website. If we were just wanting to use some specific Kendo components, like Switch, what are the bare minimum Javascript and CSS files that would be required to get Switch to work?

If we want to use a few other components individually, how would we go about figuring out which JS/CSS files are necessary for those (so we don't have to ask about each one individually)?

3 Answers, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 10 Sep 2014, 09:11 AM
Hello John,

the CSS parts may be hard to break apart, as they have too much common parts. The JS requirements for each component are listed in the following help topic

Regards,
Petyo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
JohnVS
Top achievements
Rank 1
answered on 10 Sep 2014, 02:31 PM
Thanks for the link for the JS requirements. That helps with the JS, but what about the CSS? It "may be hard"? Can we at least get an indication of what files are required to get Kendo working at a minimum? Or a description of what the basic CSS files include or what they affect?

For instance, we use Bootstrap, but there are multiple files that reference Bootstrap:
  • kendo.bootstrap.min.css
  • kendo.bootstrap.mobile.min.css
  • kendo.common-bootstrap.min.css

Are all of them necessary? I'm guess in addition to those, you also need to include some kind of Kendo Core CSS file as well? Why does this have to be so confusing? Thanks for any help you can provide.

0
Petyo
Telerik team
answered on 12 Sep 2014, 10:53 AM
Hello John,

In your case, only two files are necessary for the switch to look as expected (check example). More information may be found in the following help sections:

- Using mobile widgets in a web context (explains the bootstrap.mobile file)
- Using Kendo UI with Bootstrap (explains the other two files). 

Regards,
Petyo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Switch (Mobile)
Asked by
JohnVS
Top achievements
Rank 1
Answers by
Petyo
Telerik team
JohnVS
Top achievements
Rank 1
Share this question
or