var dict = this.index.getComponentDict();
var methods = this.index.getComponentMethods();
// do this:
methods.reset();
// or do that:
dict.set('searchDefinition',"");
Both lines have the expected effect on components like IfInputEmpty. However, although IfInputEmpty= true, there is still something visible in the input tag itself.
Currently I'm adding this on top:
$("#searchInput").val("")
and adding the id searchInput with inputAttributes.
Am I doing something wrong or is that the way to go?
How to clear the content of the input tag?
Both lines have the expected effect on components like IfInputEmpty. However, although IfInputEmpty= true, there is still something visible in the input tag itself. Currently I'm adding this on top:
$("#searchInput").val("")
and adding the id searchInput with inputAttributes. Am I doing something wrong or is that the way to go?