CustomAddFunction in combination with TableList not working

Issue #437 new
Rainer Bernhardt
created an issue

When using a custom add function on a list via the ListDrawerSettings attribute, I would assume it works with the TableList attribute.

The following example demonstrates that pressing the + button on ListA will not add a value with 2, where in ListB it will add with "2" as a value.

public class Example {
    [TableList]
    [ListDrawerSettings(CustomAddFunction = "AddValueToA")]
    public List<int> ListA = new List<int>();

    [ListDrawerSettings(CustomAddFunction = "AddValueToB")]
    public List<int> ListB = new List<int>();

    private void AddValueToA() {
        ListA.Add(2);
    }

    private void AddValueToB() {
        ListB.Add(2);
    }
}

Comments (0)

  1. Log in to comment