component / overlay Goto Github PK
View Code? Open in Web Editor NEWPage overlay component
Home Page: http://component.github.io/overlay
Page overlay component
Home Page: http://component.github.io/overlay
i think all view's should expose a regular element as their this.el
instead of sometimes being elements and sometimes being jquery-like objects. if they need the shorthand, they can use a private this.$el
instead.
let me know what you think @visionmedia and i'll PR this (once some of the other conflicting PRs are merged/closed)
curious, is the overlay not escapable on purpose? or would it make sense to pull the escapability from dialog into overlay instead?
building my own overlay and wishing escapable was baked in
Hey,
if you use this great component in IE9 or 10 there is a bug.
Calling the remove method the element is hiding for 2 secounds.
During this time you cant use your website, because the overlay catches all the mouse events.
I dont have a solution for this problem.
Why do we have to wait 2 secounds before removing the element?
Removing it after ~300ms would avoid getting stressed.
Thanks!
(I know, there is no excuse using the IE and I dont use it! ;)
i dont think it should assume you want to remove
the overlay when you are just hiding it.
in my case, adding a modal to the page and it can be opened/closed multiple times. currently i'd have to manually reattach the overlay each time, whereas if i really wanted that functionality i dont think its that hard to do hide().remove()
altho since hiding should be async (animations), it might be better to have it take a callback:
overlay.hide(function () {
overlay.remove();
});
what do you think? i can PR this functionality if you want it @visionmedia
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.