@XTA any chance of some example code on Github or anything? I’d understand not sharing the app, but maybe a page with some transitions and stuff?
I’m just getting my teeth into Meteor with Framework7 and although I’m getting there slowly, there’s a lack of documentation on the Framework7 packages and how to get it working well with Meteor.
Also, thanks for the code above, it helped massively!
Hi Dennis ( @XTA ), do you have any further statement why to initialize that on every template? We just do it currently once on client load and can’t see any inconsistencies.
@tomfreudenberg But do all plugins and views work fine when you only call it once? I just had some problems with plugins like Smart Select that didn’t work after loading the new site without initialization. BTW: We’ve used Iron Router for routing instead of the F7 router.
@XTA (Dennis) currently we had no troubles therefor but we just made some first test developments so I will take that in mind and report here once we need it too.
Btw: We are using FlowRouter and have disabled F7 ajax and router.
@XTA you make my day … hahaha … I tried this a few times but missed to drop the panel-reveal class we had copied from some demo code. Sometimes can’t see the wood for the trees.
Basing on @XTA 's example, trying to understand how F7 + Meteor works, we added quite a bit stuff this weekend. Anyone interested may take a look at this fork: https://github.com/daveeel/meteor-framework7 . Added some reactivities with pull to add, Google Maps pins etc…
Note it’s a quick hack for learning, so code is not clean and mixed with .js .ls .html & .jade, but should have included common use cases.
A few issues though:
We can’t get smart-select to use it’s default open to new page behaviour. Suspecting it’s Iron Router conflicting with F7’s own ?
The photoBrowser zooming doesn’t work properly. It’s kind of css issue needs to be fixed.
Basically F7 UI is second to none as far as I’m aware. Meteoric Ionic dev seems stopped. Actually even the official Ionic features can’t compete with F7.
Currently the code use custom transitions from the Transitioner package. Kinda manual to set things up, but works okay.
If anyone has sample project that works with Flow Router, that would be great!
Comments and advices for better pattern or practices are welcome
@daveeel Yeah we had exact the same issues. Smart Select only works with popup mode, and zooming on PhotoBrowser works only with a double tap (no multi touch zooming).
Here you are, I made the changes to your demos, now running FlowRouter
The only part missing are the Transition effects. I added a compatible Transitioner but didn’t get it running yet (do not have enough time by now). Maybe someone like to fix it.
I’ll later add dynamic popups (with own content) and back button functionality to close popups / photo browsers.
// Edit: @tomfreudenberg Think we should use @daveeel’s repo for sending PRs, so mine will stay “for the beginners”. I’ll later add a link to daveeel’s repo so people can see the extended version.
Nice. But unfortunately this sample code is making heavy use of Jade and Livescript, which makes it hard to read for people like me using standard HTML and CSS/SCSS. :-/