Comments (5)
Right, good catch. Will add this feature.
At the moment you can add it dynamically to body and call app.popup() method. Or you can put it inside of page and within callback move it from page to body, that should make a trick:
$$(document).on('pageInit', function (e) {
var page = e.detail.page;
var pagePopup = $$(page.container).find('.popup);
if(pagePopup.length>0) {
$$('body').append(pagePopup);
// if you need to open it right now:
myApp.popup(pagePopup);
}
});
from framework7.
Thanks for adding it in the future! For now I'm using a workaround close to your suggestion.
I'm adding "empty" popup markup into the main page's markup, and use the onPageAfterAnimation
event to add the contents to the empty popup DOM nodes after the page animation has finished.
Works for me, but it's kinda inconvenient.
Nonetheless, thanks for the great framework! π
from framework7.
Ok, it is already in dev version, but you have to pass full popup html, you can use it like
myApp.popup('<div class="popup">Hello, <a href="#" class="close-popup">close me</a></div>', true);
the last boolean parameter is removeOnClose, if true (by default it is true) popup will be removed from DOM after you close it
from framework7.
Coolio, thanks!
from framework7.
Ok, closing the issue. Reopen if you'll have problems with it
from framework7.
Related Issues (20)
- Bug: hide-group-titles not displaying hidden content when search is cancelled or closed
- Columns quantity at one <div>
- Request: style selector prop for Preloader component
- BugοΌThe transparent Navbar
- Error routes when AndroidInsecureFileModeEnabled is enabled
- Type definition error: Calendar.Parameters.formatValue has a Date[] parameter
- Cannot have multiple pie charts on the same page or tooltips are broken.
- Problem with Console Warning ``___ was created with unknown prop ___`` HOT 3
- Support TypeScript for Svelte HOT 1
- toolbar-bottom is not down at start-up [iOS only]
- Custom Icons Not Display on ``md`` Theme
- On vacation until January 22 π
- problem touchmove slide swiper HOT 1
- Vite f7 Core production builds leads to InvalidCharacterError: Failed to execute 'createElement' on 'Document' HOT 1
- ../../packages/core/framework7-bundle.min.js missing HOT 1
- Text editor text colors and text background HOT 1
- No export named "Col"
- Routes.js error with Fetch and file:// in url when linked file is stored on local android storage file:///data/user/0/my.app/files/files HOT 1
- Wrong stack trace in case of error in the router component
- sheet.setSwipeStep is not a function
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from framework7.