jscroll icon indicating copy to clipboard operation
jscroll copied to clipboard

Using jscroll in Bootstrap modal?

Open julianpring opened this issue 7 years ago • 2 comments

I want to add jscroll to a Bootstrap modal, however, I can't seem to find a way to implement it.

Here is a JSFiddle I started:

http://jsfiddle.net/DTcHh/33284/

What would the jscroll JS look like to implement jscroll in the modal?

Additionally, is it possible to return a JSON response in a different format, and grab the HTML from one of the properties and append it to the modal? For example, if I had a response that looked like:

{"success":true,"data":{"html":"<HTML TO APPEND TO MODAL HERE>"}}

Thanks,

julianpring avatar Jun 05 '17 04:06 julianpring

@pklauzinski Any ideas?

julianpring avatar Jun 06 '17 21:06 julianpring

Would just leave it here:

$("#yourModalName .modal-body").scroll(function () {
        if($(this).scrollTop() + $(this).innerHeight() >= $(this)[0].scrollHeight) {
                  $('.pagination').last().find('li.active + li a').click()
        }
});

alvinzjoe avatar Nov 25 '19 03:11 alvinzjoe