As the usage says I placed resizeable resize.trigger="foo($event.detail)" on the div I want to check for resize and then placed in that custom elements VM:
I managed to get rid of the error above however I cannot for the life of me get this to work… I have a custom element that I need to know whether its size has changed. I thought this option might work but after setting it up exactly as suggested in the notes on usage - making sure that foo is set to “public” - I get the error foo is not a function. (I even tried setting the function to @bindable but that didnt work either):
Here is how I have set up the view: <calendar resizeable resize.trigger="foo($event.detail)"></calendar>
I have figured this out… I have a number of nested divs along with using grid. I needed to set another div in the same place as the grid area I wanted to measure. My biggest screw up was not placing the foo function on the correct VM… Ive got a few… once I was able to do that I was able to get a handle on the width of the div as it changed. Thanks for viewing. Simon