ux icon indicating copy to clipboard operation
ux copied to clipboard

[LiveComponent] [LiveCollectionType] Allow min and max options

Open bastien70 opened this issue 2 years ago • 4 comments

Hello, concerning the LiveCollectionType, I wonder if these options could be interesting:

"min" => Initializes the collection with N elements and does not display a delete button until the minimum number of elements is present

"max" => Does exactly the opposite. Will no longer display the add element button if the maximum number of desired elements is reached.

It seems to me that a very old bundle for collections had these kinds of options:

https://symfony-collection.fuz.org/symfony3/options/numberCollectionElements

bastien70 avatar Nov 13 '23 14:11 bastien70

Thank you for this issue. There has not been a lot of activity here for a while. Has this been resolved?

carsonbot avatar May 14 '24 12:05 carsonbot

Friendly ping? Should this still be open? I will close if I don't hear anything.

carsonbot avatar May 28 '24 12:05 carsonbot

Yes it should

bastien70 avatar May 28 '24 12:05 bastien70

Would you like to work on this feature ?

smnandre avatar May 28 '24 18:05 smnandre

Thank you for this issue. There has not been a lot of activity here for a while. Has this been resolved?

carsonbot avatar Nov 29 '24 12:11 carsonbot

Could I get an answer? If I do not hear anything I will assume this issue is resolved or abandoned. Please get back to me <3

carsonbot avatar Dec 13 '24 12:12 carsonbot

No responses since many many monthes, let's close and re-open if needed.

Kocal avatar Dec 13 '24 15:12 Kocal

Although this is achievable with a few lines of custom code in form logic and in the the twig template, having this setting would be really useful.

apphancer avatar May 29 '25 08:05 apphancer