-
Notifications
You must be signed in to change notification settings - Fork 21
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
Simply not working in 2.0 #31
Comments
@iSuslov I was able to get this working in 2.0, but I could not get the class mixin functionality to work which lead me here. I have no experience with Polymer 1.0 so it took a bit of digging and trial to find that 1.0 syntax works. In any case here's an element that wraps google-chart to make it responsive.
|
@ralphsmith80 yep, in hybrid mode it will work, but in 2.0 mode it's not |
Definitely need new documentation to explain how to use this properly in 2.0 with mixins |
https://meowni.ca/posts/polymer-2-cheatsheet/ I refer to her cheat sheet often and I found her section on mixins more useful than the docs :) |
If someone got this to work in 2.0, can you share your changes? |
@yebrahim I am using it like so in my 2.0 elements
|
@BootsSiR Are you then adding a |
@yebrahim Sorry, my particular implementation involves manually calling notifyResize |
@yebrahim mb its a bit too late for this answer, but still. In the Polymer 2.0 there are no more
|
as per comment by @galanovnick in issue PolymerElements/iron-resizable-behavior#31
I was able to get it to work with Polymer 2.0 Then I added the import at the top of my component file: Then in my class declaration I added the behavior: I added the ready function with an event listener that called a function when the event was fired: I defined my function to log the width every time the function was fired: |
Please suggest if iron-grid is a good for grid system to make responsive app ? https://github.com/The5heepDev/iron-grid |
Polymer.IronResizableBehavior not working. No documentation. App crashes when use it like this:
Polymer.mixinBehaviors([Polymer.IronResizableBehavior], Polymer.Element)
The text was updated successfully, but these errors were encountered: