Bootstrap"

From Documentation
(Created page with "{{ZKDevelopersReferencePageHeader}} =Overview= [https://getbootstrap.com/docs/4.6/getting-started/introduction/ Bootstrap] is the world’s most popular front-end framework f...")
 
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{ZKDevelopersReferencePageHeader}}
 
{{ZKDevelopersReferencePageHeader}}
  
=Overview=
 
[https://getbootstrap.com/docs/4.6/getting-started/introduction/ Bootstrap] is the world’s most popular front-end framework for building responsive, mobile-first sites. It can be a good companion for ZK.
 
  
See the integration example: [https://github.com/zkoss-demo/admin-template  Admin Template]
+
[https://getbootstrap.com/docs/4.6/getting-started/introduction/ 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 [https://getbootstrap.com/docs/4.6/layout/grid/ the responsive grid system]
 +
* Style a page with [https://getbootstrap.com/docs/4.6/utilities/borders/ utility CSS classes]
 +
 
 +
See the integration example: [https://github.com/zkoss-demo/admin-template  admin template]
 +
 
 +
= Include JAR =
 +
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>
 +
 
 +
= Include CSS =
 +
==Page Scope==
 +
<syntaxhighlight lang='xml'>
 +
<?link rel="stylesheet" href="/webjars/bootstrap/4.6.0/css/bootstrap.min.css"?>
 +
</syntaxhighlight>
 +
 
 +
==Application Scope==
 +
 
 +
<syntaxhighlight lang='xml'>
 +
<?xml version="1.0" encoding="UTF-8"?>
 +
<language-addon>
 +
    <addon-name>bootstrap</addon-name>
 +
    <language-name>xul/html</language-name>
 +
    <stylesheet href="/webjars/bootstrap/4.6.0/css/bootstrap.min.css" type="text/css"/>
 +
</language-addon>
 +
</syntaxhighlight>
 +
 
 +
See [[ZK%20Client-side%20Reference/Language%20Definition/stylesheet]]
  
 
{{ZKDevelopersReferencePageFooter}}
 
{{ZKDevelopersReferencePageFooter}}

Latest revision as of 08:35, 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:

See the integration example: admin template

Include JAR

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>

Include CSS

Page Scope

<?link rel="stylesheet" href="/webjars/bootstrap/4.6.0/css/bootstrap.min.css"?>

Application Scope

<?xml version="1.0" encoding="UTF-8"?>
<language-addon>
    <addon-name>bootstrap</addon-name>
    <language-name>xul/html</language-name>
    <stylesheet href="/webjars/bootstrap/4.6.0/css/bootstrap.min.css" type="text/css"/>
</language-addon>

See ZK Client-side Reference/Language Definition/stylesheet



Last Update : 2023/03/29

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.