nova-flexible-content icon indicating copy to clipboard operation
nova-flexible-content copied to clipboard

Add minimum fields option

Open samboylett opened this issue 4 years ago • 2 comments

Adds the option to set a minimum number of fields. Will make the delete icon/button disappear if the number of fields is at or below the minimum.

Above minimum: Screenshot 2021-03-15 at 15 13 23

At/below minimum: Screenshot 2021-03-15 at 15 13 17

Also made it so the ordering icons aren't visible unless there are at least 2 layouts present:

Screenshot 2021-03-15 at 15 45 39

Screenshot 2021-03-15 at 15 45 50

And with a little refactoring moved some reactive data to computed properties

samboylett avatar Mar 15 '21 15:03 samboylett

Hi @samboylett, thanks for the PR. It would be interesting to also add a php validation rule automatically when setting a minimum number of rows. What do you think?

voidgraphics avatar Mar 17 '21 10:03 voidgraphics

Please resolve this!

riptin avatar Jun 09 '23 14:06 riptin