A Meteor Famo.us Views Popup widget. Tested with Meteor 1.0 but should work with previous versions.
You can see a live demo here
You can read it here.
Tested and developed with Chrome/Chromium. Works somewhat on Firefox, but seems to have at least opacity problems.
What's new in v2.0.0 ?
translateZ
in favor of CSS z-index
which seems to cause less trouble.#each
instead of #famousEach
and Famo.us #Surface
cleaning when templates are destroyed, should now be limited if not gone.#Surface
has now replaced #View
. It simplifies a lot the most common case where a popup is just a simple #Surface
and I have found no real use case where a #View
would be required. So until it bothers someone (feel free to open a new issue) it is now way simpler to handle popups!Popups.hide(...)
new signature (see API)Random.id()
would return a string starting with one (or more digits). Now forced to prefix with "popup_" so that it is always a string, no matter the randomness :wink:What's new in v1.1.2 ?
Sizing can now be done with "[x, y]" like usual or with a shortcut key returning size based on a key string: "modal-lg".
* Make it work on other browsers than Chrome. Actually works on both
mobile and desktop Chrome/Chromium!
* Issues and PR welcome :)
# License
MIT