Search code examples
angularprimeng

How to set max size for splitter panel PrimeNg?


I use this splitter. It has minSize props to fix minimum size. How is about max size?

I have tried to check it using events onResizeStart(), onReisizeStop(), but it has no data about current width.


Solution

  • You can use the event onResizeEnd which gives you an array of the new sizes.

    Event description

    You can find a demo of how to use the two events to prevent the user from going over the size limit here.