Requested Feature #3341 = breakWhenNeeded#3372
Conversation
…lename_breaks_on_windows.jpg
…§è!çà)-^$ù`,;:=?.+%£¨*<>.jpg
Break when needed
🦋 Changeset detectedLatest commit: 62dac5c The changes in this PR will be included in the next version bump. This PR includes changesets to release 11 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
I don't think I understand the difference between break and breakWhenNeeded (nor I like the name of the prop too much :)) |
|
break=true always makes a page break But breakWhenNeeded adds a page break if the element is going to wrap on another page. But if that element is bigger than the whole page (e.g if is is bigger than the A4 Format), then it continues normally (with a page break before) |
|
Name of the prop is not important, it can always be changed :) |
|
let me know how to proceed |
|
@diegomura this is such a simple change but such important add-on for multiple use-cases like tables or long lists of complex elements. What can we do to make it merged in? @caticHarun thank you so much for this! |
|
Thank you so much for this PR. I would in fact need exactly this for my app. It would be so great to see it merged :) Also, if you do not like the name @diegomura, this could maybe become a default behavior of wrap=false. Like if we do not have enough space on the current page, we go to the next one, but if the component is bigger than the whole next page, we break and go to the next one ? |




closes #3341
This feature adds a property "breakWhenNeeded".
If breakWhenNeeded=true and element cannot fit on the page, then it adds a page break before
The main difference between wrap=false and breakWhenNeeded=true is that in wrap={false} the element is limited on one page. Whereas in breakWhenNeeded=true, it only adds a break before and it continues on as it should