Skip to Content
0
Sep 06, 2023 at 03:13 PM

What is the best way to clear form cell filter values

175 Views

Hi,

I have 3 items in form cell filter. After we select 2 of them and try to reset it, the button renders twice.

I am using following code to clear values. I got this snippet from Asset manager application. I saw this behaviour in Asset manager demo app downloaded from app store as well in equipment filter section. Attached images.before-reset.pngafter-reset.png

static setFilterValue(control, value) {
if (control) {
control.setValue(value);
}
}

If this is not the correct way, this is there any other way to clear the filter here?

Thanks,

Shubham

Attachments

before-reset.png (46.7 kB)
after-reset.png (41.3 kB)