-
-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/cupertino with elements #40
Feature/cupertino with elements #40
Conversation
Create LICENSE
Translucent draggable compatibility
- Class saves an element reference (this.el) if the constructor first parameter is not a string. Otherwise it will fall back to document.querySelector(..) - Adapted all functionalities using the selector variable to use the 'el' variable instead, only when the class is constructed via element and not selector (string).
Hello @dalepo Please give me more clarifications regarding the issue you catch while using library with Angular with pass selectors. (Logs, Case, Code, somethings... ) |
Hey @roman-rr |
Very interested in this. Would be great if i could pass a Component! |
Feature scheduled for the next releases as first task in priority list |
I liked your library, I'm trying to port it to angular by compiling the template in runtime and I figured maybe it would be good if the constructor supported elements and selectors instead of only selectors.
Notice that I changed some internal functions to use the element instead of the selector, but if the class was originally constructed with a selector it will fall back to what you did before.
I also changed the base test, let me know if you would like to replicate the 'With selectors' button in the other tests!.
Cheers.