Search code examples
javascriptbootbox

How to add a scroll to bootbox dialog?


I have searched the web and I have failed to find a solution to adding a scroll to a bootbox custom dialog. Is there anyway I could get it to work. I need a vertical scroll.

Is this possible?


Solution

  • Bootbox uses a css class named modal-body for the body of its dialog; so you can override the class to make it scroll-able. For instance:

    .modal-body {
        height: 100px;
        overflow-y: scroll;
    }