Dropdown:
Modify content overlays to display link lists and more with the Bootstrap dropdown plugin.
Overview:
Downloads are flexible, context overlay to display link lists and more. Built with the JavaScript plugin for Bootstrap installed. They are converted by clicking, not by moving upwards; this is a deliberate design decision.
The download is built on a third-party library, Popper.js, which provides flexible positioning and viewing hole detection. Be sure to install popper.min.js before JavaScript for Bootstrap or use bootstrap.bundle.min.js / bootstrap.bundle.js which contains Popper.js. Popper.js is not used for placing drop-downs in navbles although a variable position is not required.
If you are building our JavaScript source, it requires util.js.
How to Build Scrollspy?
The following example shows how to create scrollspy:
For example
Try to scroll this section .
look at the navigation bar!
Try to scroll this section .
look at the navigation bar!
Try to scroll this section .
look at the navigation bar!
Example Explained
Add data-spy = "scroll" to the element to be used as a scrolling area (usually this is the
element).Then add a data target attribute with the id or class name of the navigation bar (.navbar). This is to ensure that the navbar is connected to the scrolling area.
Note that the scripts must match the ID of the links within the navbar list items (< div id = "section1" > is similar to < a href="#section1" >).
The optional data-offset identifier specifies the number of pixels that must be removed from the top when calculating the scroll area. This is useful if you feel that links in the navbar are changing the status of the device too soon or too early if you are jumping on scratches. Default is 10 pixels.
|