SearchPane dialog with close button
SearchPane dialog with close button
imic
Posts: 6Questions: 0Answers: 0
in SearchPanes
Thanx for great extension!
Could you please show example or direction to write code (extend SearchPane button) to include Close button under all panes!
This discussion has been closed.
Replies
I'm not 100% sure what you mean. What will the close button do? Is it a button per pane?
Thanks,
Allan
It is one button under all panes which closes SearchPanes dialog box.
For example in editor extension there is option to include custom buttons. I wonder if something similar is possible with SearchPanes extension?
Thanks for the clarification - I understand now. Possibly is the answer - I'm not sure what else that feature would be used for, but we'll take a look and see if we come up with anything. Will post back when we have an answer.
Allan
We've just been thinking about it a bit, and you could do something like this:
Allan
Thank you. Yes, your code is what I am looking for. Used it with little modifications:
Maybe there is some event which can be used in this case?
After some testing it appears that another IF is needed:
Without additional checking multiple buttons are created.
Cool - thanks for posting back with your tweaks.
Allan
Sorry, I'm learning this as I go here - thanks to you both for figuring this out.
Does this need to be in the same script that the datatable is initialized?
Thanks!
I used this for my use case (Bootstrap 4 css).
After some testing
It renders multiple buttons without additional control and is poorly positioned
@Acunn I'm not clear if you're asking for help with the poor positioning. If so, we're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.
Cheers,
Colin