Bootstrap"
From Documentation
Line 8: | Line 8: | ||
See the integration example: [https://github.com/zkoss-demo/admin-template admin template] | See the integration example: [https://github.com/zkoss-demo/admin-template admin template] | ||
+ | |||
+ | = Include Bootstrap = | ||
+ | To avoid downloading bootstrap manually, it's convenient to include it by [https://www.webjars.org/ WebJars] with Maven. | ||
+ | |||
+ | <syntaxhighlight lang='xml'> | ||
+ | <dependency> | ||
+ | <groupId>org.webjars</groupId> | ||
+ | <artifactId>bootstrap</artifactId> | ||
+ | <version>4.6.0</version> | ||
+ | </dependency> | ||
+ | </syntaxhighlight> | ||
{{ZKDevelopersReferencePageFooter}} | {{ZKDevelopersReferencePageFooter}} |
Revision as of 07:57, 29 March 2023
Bootstrap is a very popular front-end framework for building responsive, mobile-first sites. It can be a good companion for ZK with the following usages:
- Layout a page with the responsive grid system
- Style a page with utility CSS classes
See the integration example: admin template
Include Bootstrap
To avoid downloading bootstrap manually, it's convenient to include it by WebJars with Maven.
<dependency>
<groupId>org.webjars</groupId>
<artifactId>bootstrap</artifactId>
<version>4.6.0</version>
</dependency>