hi everyone. I have a toolbar/tabbar and in my home view (#view-home
) i’d like to open a sheet modal. The issue is, the sheet model persists throughout views, regardless what tab icon i am clicking.
Here is my current code for my sheet modal:
var routes = [
{
path: '/',
url: './index.html',
on:
{
pageInit: function (e, page)
{
var home_sheet = app.sheet.create(
{
el: '.home-sheet',
swipeToClose: false,
swipeToStep: true,
backdrop: false,
closeByBackdropClick: false,
});
home_sheet.open();
},
}
},
How do i get the sheet modal to stay in the home view only? and behind the toolbar/tabbar?
I’ve tried placing the html sheet compnent inside the view-home div, but framework7js places this as a child of the body and sibling of app.