02.06.2015 Views

Bootstrap Tutorial

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<br />

Popover on top<br />

<br />

<br />

Popover on bottom<br />

<br />

<br />

Popover on right<br />

<br />

<br />

$(function ()<br />

{ $("[data-toggle='popover']").popover();<br />

});<br />

<br />

<br />

Options<br />

There are certain options which can be added via the <strong>Bootstrap</strong> Data API or invoked via JavaScript. Following<br />

table lists the options:<br />

Option<br />

Name<br />

Type/Default<br />

Value<br />

Data<br />

attribute<br />

name<br />

Description<br />

animation<br />

boolean<br />

Default: true<br />

dataanimation<br />

Applies a CSS fade transition to the popover.<br />

html<br />

boolean<br />

Default: false<br />

data-html<br />

Inserts HTML into the popover. If false, jQuery’s text method will<br />

be used to insert content into the dom. Use text if you’re worried<br />

about XSS attacks.<br />

placement<br />

string|function<br />

Default: top<br />

dataplacement<br />

Specifies how to position the popover (i.e.,<br />

top|bottom|left|right|auto).<br />

When auto is specified, it will dynamically reorient the popover.<br />

For example, if placement is "auto left", the popover will display to<br />

the left when possible, otherwise it will display right.<br />

selector<br />

string<br />

Default: false<br />

data-selector<br />

If a selector is provided, popover objects will be delegated to the<br />

specified targets.<br />

title string | function data-title The title option is the default title value if the title attribute isn’t<br />

TUTORIALS POINT<br />

Simply Easy Learning

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

Saved successfully!

Ooh no, something went wrong!