Jump to: navigation, search

Bootstrapskin Dismissable Portlets

Portlets

Portlets are another space saving feature which allows for large blocks of content in a small space in a similar fashio to Nav Tabs, though Portlets come with additional functionality.

Note how Portlets can be dragged and dropped to different locations, or if you select the "x" it will remove a Portlet and the chevrons open and close the panels. Panels can also be set to the desired postion, either open or closed on page load.

Bootstrap Portlet 2

Bootstrap Portlet 3

Usage

Aspects to take note of are;

<div class="panel-options dark">

Use the above for a light coloured title and the following for a dark colour.

<div class="panel-options">

Also note the following which determine the open/close states;

<div style="display: block;" class="panel-body"> // panel open on page load
<div style="display: none;" class="panel-body"> // panel closed on page load

Add the following to your articles and modify as required.

<div class="column clearfix"> 
<div class="col-md-12 column sortable ui-sortable pull-right">
            <div class="portlet">
                <div class="panel panel-primary-light-border">
                    <div class="panel-heading clearfix">
                        <div class="panel-caption">
                            <h3 class="panel-title">Cavila Portlet Overview</h3>
                        </div>
                        <div class="panel-options dark">
                            <div class="panel-collapse">
                                <div class=""><i class="fa fa-chevron-up"></i></div>
                            </div>
                            <div class="panel-remove">
                                <div class=""><i class="fa fa-times"></i></div>
                            </div>
                        </div>
                    </div>
                    <div style="display: block;" class="panel-body">
                    <p class="justify">Note the functionality, while not the same as tabs, it allows for large blocks of content in a
    small space in the same way as tabs, but with additional functionality that would be difficult to accomplish with tabs.
    Personally I prefer porlets to tabs, we've not looked at tabs yet because there were issues with linking, but if you're
    insistent we can look at including them <i class="fa fa-smile-o"></i></p>
    <p style="text-align:justify">As to portlet functionality note how they can be dragged and dropped to different locations, if
    you select the it will remove a portlet and the chevrons open and close the panels. Panels can also be set to the
    desired potion, either open or closed on page load.</p>
                    </div>
                </div>
             </div>

            <div class="portlet">
                <div class="panel panel-primary-light-border">
                    <div class="panel-heading clearfix">
                        <div class="panel-caption">
                            <h3 class="panel-title">Bootstrap Portlet 2</h3>
                        </div>
                        <div class="panel-options dark">
                            <div class="panel-expand">
                                <div class=""><i class="fa fa-chevron-down"></i></div>
                            </div>
                            <div class="panel-remove">
                                <div class=""><i class="fa fa-times"></i></div>
                            </div>
                        </div>
                    </div>
                    <div style="display: none;" class="panel-body">
                            <p class="justify">
                                Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris ullamcorper
                                dolor ut urna consectetur, id interdum purus pellentesque. Suspendisse fringilla
                                nunc erat, nec consectetur nisi tristique nec. Etiam dignissim hendrerit vehicula.
                                Cras eu dui vel nulla cursus feugiat. Suspendisse sem purus, molestie quis diam ac,
                                facilisis hendrerit elit. Morbi molestie ligula ut volutpat commodo. Donec ultrices,
                                metus a adipiscing ultrices, risus nibh rutrum nibh, vel interdum quam justo nec
                                nibh. Maecenas non orci a metus sollicitudin sollicitudin. 
                            </p>
                        </div>
                    </div>
                </div>

<div class="portlet">
                <div class="panel panel-primary-light-border">
                    <div class="panel-heading clearfix">
                        <div class="panel-caption">
                            <h3 class="panel-title">Bootstrap Portlet 3</h3>
                        </div>
                        <div class="panel-options dark">
                            <div class="panel-expand">
                                <div class=""><i class="fa fa-chevron-down"></i></div>
                            </div>
                            <div class="panel-remove">
                                <div class=""><i class="fa fa-times"></i></div>
                            </div>
                        </div>
                    </div>
                    <div style="display: none;" class="panel-body">
                            <p class="justify">
                                Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris ullamcorper
                                dolor ut urna consectetur, id interdum purus pellentesque. Suspendisse fringilla
                                nunc erat, nec consectetur nisi tristique nec. Etiam dignissim hendrerit vehicula.
                                Cras eu dui vel nulla cursus feugiat. Suspendisse sem purus, molestie quis diam ac,
                                facilisis hendrerit elit. Morbi molestie ligula ut volutpat commodo. Donec ultrices,
                                metus a adipiscing ultrices, risus nibh rutrum nibh, vel interdum quam justo nec
                                nibh. Maecenas non orci a metus sollicitudin sollicitudin. 
                            </p>
                        </div>
                    </div>
                </div>
</div>
</div>
bootstrapskin-commercial-skin.png