btnloadmorejs

1.0.1 • Public • Published

js Function Button Load more..

JS Button Load more

Including files:

<script src="../dist/btnloadmore.min.js"></script>

How to use

You need to do is call the plugin inside a $(document).ready function:

<div class="contents">
    <div> 1 </div>
    <div> 2 </div>
    <div> 3 </div>
    <div> 4 </div>
    <div> 5 </div>
    <div> 6 </div>
    <div> 7 </div>
    <div> 8 </div>
    <div> 9 </div>
</div>
$(document).ready(function(){
    $('.contents').btnLoadmore();
});

Options

$('.contents').btnLoadmore({
    showItem : 2,
    whenClickBtn : 1,
    textBtn : 'Load more ...'
});

Method

  • showItem : set number for show element.
  • whenClickBtn : set number for show element when click button.
  • textBtn : set text on click button.
  • classBtn : set custom class button .

Readme

Keywords

none

Package Sidebar

Install

npm i btnloadmorejs

Weekly Downloads

3

Version

1.0.1

License

MIT

Unpacked Size

15.9 kB

Total Files

8

Last publish

Collaborators

  • nttps