bootstrap-plugins

1.0.3 • Public • Published

Bootstrap plugins

Commonly used Bootstrap components are encapsulated as JavaScript, which is suitable for Bootstrap 4.6.x.

Contains Modal, Pagination, Toast, Validation components.each component can be referenced (in dist/js).

Install:

npm install bootstrap-plugins

Usage:

Reference all components.

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css">
<script src="https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/jquery-validation@1.19.3/dist/jquery.validate.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/jquery-validation@1.19.3/dist/localization/messages_zh.min.js"></script>
<script src="dist/js/all.min.js"></script>

Refer to a component separately, for example using Pagination.

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css">
<script src="https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js"></script>
<script src="dist/js/pagination.min.js"></script>

When using validation or all components, jquery-validation must be introduced.

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css">
<script src="https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/jquery-validation@1.19.3/dist/jquery.validate.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/jquery-validation@1.19.3/dist/localization/messages_zh.min.js"></script>
<script src="dist/js/validation.min.js"></script>

The specific method is to view document/index.html in the package.

Build:

cd bootstrap-plugins
npm install
npm run build

Change log

v1.0.3 2021-07-20

  • Build only keeps compressed and map files, not uncompressed files.
  • Optimized rollup to automatically identify source files.
  • Remove redundant lodash references in the documentation.
  • Fix code detection html format problem.
  • Fix the problem that rollup banner does not take effect.

v1.0.2 2021-07-16

  • Optimize the previous and next page styles of Pagination component.
  • Delete lodash wording.
  • Fixed the issue that Modal's incoming title is invalid.

v1.0.1 2021-07-15

  • Added Pagination component.

Readme

Keywords

none

Package Sidebar

Install

npm i bootstrap-plugins

Weekly Downloads

5

Version

1.0.3

License

ISC

Unpacked Size

98.6 kB

Total Files

24

Last publish

Collaborators

  • faganer