evoluteur / structured-filter

jQuery UI widget for structured queries like "Contacts where Firstname starts with A and Birthday before 1/1/2000 and State in (CA, NY, FL)"...
http://evoluteur.github.io/structured-filter/
MIT License
258 stars 61 forks source link

Run time add new fields in structFilter #27

Closed Ponvijaykumar closed 5 years ago

Ponvijaykumar commented 5 years ago

It's possible to add new fields object { id: "FieldID", type: "text", label: "FieldLabel" } in existing structFilter.

$("#myFilter").structFilter({ fields: [ {type:"text", id:"lastname", label:"Lastname"}, {type:"text", id:"firstname", label:"Firstname"}, ] });

Ponvijaykumar commented 5 years ago

I try to destroy and re-create structFilter

But not able to destroy the existing structFilter.

image

evoluteur commented 5 years ago

Thanks for letting me know. I just fixed the destroy method.