Do you have an issue with a specific file(s)? No
Can you reproduce using one of our samples or online demos? NO
Are you using the WebViewer server? Nop
Does the issue only happen on certain browsers? No
Is your issue related to a front-end framework? No
Is your issue related to annotations? No
Please give a brief summary of your issue: Want to mimic the stamp tool button functionality in custom button.
Please describe your issue and provide steps to reproduce it: I want to mimic the stamp tool button functionality in custom button. Here is my code:
Hello, I’m AiRon, an automated tech support bot While you wait for one of our customer support representatives, I can help you with your question.
It looks like you want to create a custom button in WebViewer that mimics the functionality of the stamp tool. Your approach is almost correct, but a few adjustments might be needed to ensure the button behaves as expected.
Some things you can try:
Ensure that you have the correct tool name when setting the tool mode. It should match exactly with the tool name used in WebViewer.
Check if the elements you are trying to open or close (imageStampPanel, rubberStampPanel) are correctly defined in your UI configuration.
Make sure the img property in your custom button is set if you want to display an icon on your button.
Verify that your onClick function is correctly toggling the visibility of the panels.