Group list limit

Is it possible to set a limit on group-list items?
Where could I enter a function to disable the + button?

Right now you cannot prevent people from adding more items, but you might be able to add validate function to warn people about putting too many items. I just realized this isn’t well documented, but it might look something like this:

  name: "colors",
  component: "group-list",
  validate(list) {
    if (list.length > 3) {
      return `Max 3 colors. Please delete ${3 - list.length} colors.`

Feel free to open a feature request in GitHub :slight_smile:

1 Like