How to add footer for moving and make content scrollable? Using Twitter Boot Tracker 3

Here is the image (what I need to do)

enter image description here

How to add footer to move and make scrollable content? Using Twitter Boot Track 3

+4
source share
1 answer

To create a footer with a footer, you must modify the popovers templateand add CSS to style that footer. Here I also place the button in the footer as you included in the image, but you have to figure out what you want to do with it.

<div class="popover">
   <div class="arrow"></div>
   <h3 class="popover-title"></h3>
   <div class="popover-content"></div>
   <div class="popover-footer">
       <button type="button" class="btn btn-default">Button</button>
   </div>
</div>
$("[rel=details]").popover({
   trigger : 'click',  
   placement : 'bottom', 
   content : 'Lorem ipsum dolor ...',
   template: '<div class="popover"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div><div class="popover-footer"><button type="button" class="btn btn-default">Button</button></div></div>' 
});

footer style:

.popover-footer {
  margin: 0;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  background-color: #F7F7F7;
  border-bottom: 1px solid #EBEBEB;
  border-radius: 5px 5px 0 0;
}

:

.popover-content {
  overflow-y : scroll;
  height: 200px;  
}

. → http://jsfiddle.net/3x4yD/

enter image description here

+9

Source: https://habr.com/ru/post/1529493/


All Articles