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.

Nihil anim keffiyeh helvetica, craft beer labore wes anderson<br />

cred nesciunt sapiente ea proident. Ad vegan excepteur butcher<br />

vice lomo.<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

Click me to exapand. Click me again to collapse.Section 3<br />

<br />

<br />

<br />

<br />

<br />

Nihil anim keffiyeh helvetica, craft beer labore wes anderson<br />

cred nesciunt sapiente ea proident. Ad vegan excepteur butcher<br />

vice lomo.<br />

<br />

<br />

<br />

<br />

1. data-toggle="collapse" is added to the link on which you click to expand or collapse the component.<br />

2. href or a data-target attribute is added to the parent component, whose value is id of the child component.<br />

3. data-parent attribute is added to is added for creating accordion like effect.<br />

<br />

To create simple collapsible without the accordion markup: This can be created as in the sample<br />

example below:<br />

<br />

simple collapsible<br />

<br />

<br />

Nihil anim keffiyeh helvetica, craft beer labore wes anderson<br />

cred nesciunt sapiente ea proident. Ad vegan excepteur butcher<br />

vice lomo.<br />

<br />

As you can see in the example we have created a simple collapsible component, unlike accordion, we haven't<br />

added the attribute data-parent.<br />

TUTORIALS POINT<br />

Simply Easy Learning

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

Saved successfully!

Ooh no, something went wrong!