AG Grid: Better way for validation row - valueSetter?

后端 未结 3 447
时光取名叫无心
时光取名叫无心 2020-12-11 14:01

Is there a better way to validate a row in ag-grid than with valueSetter?

I can achieve the validation with that but I am not sure, if ther

3条回答
  •  天命终不由人
    2020-12-11 14:32

    There are two ways of possible validation handling:

    First: via ValueSetter function

    and

    Second: via custom cellEditor component

    I suggest that it would be better to split the logic between custom components, but as you said you need to validate two cell-values between themselves.

    On this case from UI perspective you could try to combine them inside one cell and it would be easily to work with values via one component only.

提交回复
热议问题