JSFiddle - React, Tailwind, and code Playground
Fliplet Popover - VueStrap
by Hugo Carneiro
HTML
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue-strap/1.0.11/vue-strap.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/1.0.10/vue.js"></script>
<section class="widget-interface animated slideInRight-slideOutRight-transition">
<div class="iframe-wrapper">
<iframe src="https://yuche.github.io/vue-strap/"></iframe>
</div>
<footer>
<a tabindex="0" role="button" data-toggle="popover" data-trigger="focus" data-placement="top" title="Dismissible popover" data-content="And here's some amazing content. It's very engaging. Right?" class="btn btn-primary" id="save-btn">Save & Close</a>
<popover effect="fade" trigger="focus" placement="top" title="Title"
content="And here's some amazing content. It's very engaging. Right?">
<button class="btn btn-default">Cancel</button>
</popover>
</footer>
</section>
CSS
.widget-interface {
position: absolute;
right: 0;
z-index: 1;
height: 100%;
width: 400px;
padding: 15px;
background-color: #f2f6f7;
border-left: 1px solid #e4e9eb;
box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.3);
}
.widget-interface .iframe-wrapper {
position: absolute;
top: 15px;
right: 15px;
bottom: 54px;
left: 15px;
}
.widget-interface .iframe-wrapper iframe {
position: relative;
width: 100%;
height: 100%;
background-color: transparent;
border: none;
}
.widget-interface footer {
background-color: #f2f6f7;
border-top: 1px solid #d9ddde;
padding: 1rem 15px;
position: absolute;
bottom: 0;
left: 0;
width: 100%;
}
JavaScript
var popover = VueStrap.popover;
var option = VueStrap.option;
var checkboxgroup = VueStrap.checkboxGroup;
var checkbox = VueStrap.checkboxBtn;
new Vue({
el: '.widget-interface',
components: {
'popover': popover
}
});