02.06.2015 Views

Bootstrap Tutorial

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Options<br />

There are certain options which can be passed via data attributes or JavaScript are listed in the following table:<br />

Option<br />

Name<br />

Type/Default<br />

Value<br />

Data<br />

attribute<br />

name<br />

Description<br />

offset<br />

number |<br />

function | object<br />

Default: 10<br />

data-offset<br />

Pixels to offset from screen when calculating position of scroll. If a single<br />

number is provided, the offset will be applied in both top and bottom<br />

directions. To provide a unique, bottom and top offset just provide an<br />

object offset: { top: 10 } or offset: { top: 10, bottom: 5 }. Use a function<br />

when you need to dynamically calculate an offset.<br />

TUTORIALS POINT<br />

Simply Easy Learning

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!