Introduction
In modern web applications, presenting data in tables is a common practice. However, sometimes, users need the flexibility ...
For further actions, you may consider blocking this person and/or reporting abuse
Hi! Do you have this in a jsbin or something I can see the entire code in? I tried just adding this directive and there's a bunch of errors like not including it in a module, etc.
Would be helpful to see the entire project.
Can you please share the errors
dev.to/chintanonweb/mastering-resi...
Noticed a pretty big issue- the findParentTable method will cause an endless loop that will crash your browser if no parent table exists.
the fix is to change this:
to this:
I've completely ripped apart this code at this point, it was a great starting point for me. I added some code that wraps all elements within the cells, and sets the width on both the cell, and the wrapper div. This made the resize work way more reliably, regardless of the content i threw at it.
Overall, your code has some room for improvement- but it proved extremely useful to me in terms of solution approach.. and it's the only place I'm seeing someone use a directive to solve this problem.
Thanks for sharing :)
dev.to/chintanonweb/mastering-resi...
updated the code please check. My pleasure
I implemented this solution, and resizing works but does not work smoothly. Anything wrong with this solution
dev.to/chintanonweb/mastering-resi...
noticed commenting out the code after:
"// Adjust the width if the table if it has a fixed width"
makes the resize work a lot better. seems like there's quite a bit of missing required css at the table level to make this work. I'm modifying it into my own because I really like this directive approach.
updated the code please check. My pleasure
Hi, The code won't compile. Where is the last code on this topic? Thanks!!
Can you please share the error screenshot or problem you are facing details! So I can get the better idea.
dev.to/chintanonweb/mastering-resi...