Add an OK button to the searchBuilder modal
Add an OK button to the searchBuilder modal

I am using seachBuilder to good effect and getting all the functionality needed
However, after I complete the search, I then have to click off the modal window for it to close to view the results
Is there a way I could add an OK button similar to the cancel button to close the modal?
This question has accepted answers - jump to:
Answers
There is a
liveSearch
option for that. See this example and the docs here.Allan
Many thanks Allan
Most appreciated
Regards
Colin
HI Alan
I have inserted the liveSearch as false in the top layout which works fine.
This method uses the page to take and show the parameters. However, I have the searchBuilder in a row of buttons, and when entered as 'searchBuilder', it opens in a modal window, as shown below.
When I replace the above 'seachBuilder' with:
An error is given in the console as Unexpected token ':'
Your
buttons
array should include:where you want the button to appear (i.e. instead of
'searchBuilder'
.If that doesn't work, please link to a test case so I can take a look.
Allan
See this example that shows how to configure SearchBuilder when using buttons.
Kevin
Many thanks both. That works a treat.
With regard to the liveSearch though when I press Search the modal window stays visible so I have to click off it to hide the modal window
There isn't an option to have the modal hide on pressing the button at the moment. I can look into that in future.
Allan
Many thanks, Allan
Colin