Closed dpnishant closed 3 years ago
That's some outdated code.
The correct way is to use valueSetter
filter property and/or afterUpdateRuleValue
event
@mistic100 So if I understand correctly currently it is not supported to declaratively define event handlers on a per-filter basis. Is that correct?
I was possible and will never be again. It's not a problem though afterUpdateRuleValue
is called with a rule object and you can test the filter applied.
Got it. Thanks for the confirmation.
Is this example event handler correct: https://github.com/mistic100/jQuery-QueryBuilder/blob/dev/examples/index.html#L417-L421
With the debugger I'm not "breaking into" this function, even if I edited the HTML with a JSON that includes this rule filter with a value.