1.10.8 • Published 6 years ago

bootstrap-enhancement v1.10.8

Weekly downloads
9
License
ISC
Repository
-
Last release
6 years ago

bootstrap-enhancement

NPM Version License Stats Downloads Stats Github stars Github issues

Bar chart annotation for Chart.js

nodei.co

Installation

npm install bootstrap-enhancement --save

Or

<script src="https://unpkg.com/bootstrap-enhancement"></script>

Usage example

const testEle = document.getElementById('testDom');
bse.utilities.prependClass(testEle, 'text-success');

npm.io

bse.utilities.getJquery().then((jQueryFromWindow) => {
  console.log(jQueryFromWindow);
});

npm.io

alert(bse.utilities.hasScrollBar());

npm.io

console.log(bse.utilities.getScrollBarWidth());

npm.io

bse.utilities.addStyles(`
  .test{color: red}
`);

npm.io

$('#checkSize').on('click', () => {
  console.log(bse.utilities.checkBreakPoint.checkSize());
});
$('#is').on('click', () => {
  console.log(bse.utilities.checkBreakPoint.is('>md'));
});

npm.io

bse.utilities.addToWindow('test', { name: 'testObject' });

npm.io

$('#addScrollMessToResTableInit').on('click', () => {
  bse.addScrollMessToResTable.init();
});
$('#addScrollMessToResTableUpdate').on('click', () => {
  bse.addScrollMessToResTable.update();
});

npm.io

$('#scrollToTopInit').on('click', () => {
  bse.scrollToTop.init('<p class="text-danger">SCROLL TO TOP</p>');
});

npm.io

$('#resListInit').on('click', () => {
  bse.resList.init();
});

npm.io

For more examples and usage, please refer to the Documentation.

Development setup

git clone git@github.com:nerdmax/bootstrap-enhancement.git
cd bootstrap-enhancement
npm install

Report Issues

Please create the issues sample here: https://plnkr.co/edit/RtNBbVd3bwG3ZHzfdxMw This plunker contains everything you need for bootstrap-enhancement including jQuery, bootstrap, bootstrap-enhancement After creating the sample, click top left Fork button and copy the link and attach it to the issue page.

Release History

Meta

Max LIU – My personal website – mrliucan@foxmail.com

Contributing

  1. Fork it (https://github.com/nerdmax/bootstrap-enhancement/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request
1.10.8

6 years ago

1.10.7

6 years ago

1.10.6

6 years ago

1.10.5

6 years ago

1.10.4

6 years ago

1.10.3

6 years ago

1.10.2

6 years ago

1.10.1

6 years ago

1.10.0

6 years ago

1.9.2

6 years ago

1.9.1

6 years ago

1.9.0

6 years ago

1.8.0

6 years ago

1.7.1

6 years ago

1.6.1

6 years ago

1.6.0

6 years ago

1.5.0

6 years ago

1.4.0

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago