Hide Custom stamp delete button

Product: Web viewer

Product Version:10.12.0

Please give a brief summary of your issue:
(Think of this as an email subject)
I want to hide custom stamp delete buttons

Please describe your issue and provide steps to reproduce it:
(The more descriptive your answer, the faster we are able to help you)

Please provide a link to a minimal sample where the issue is reproducible:

1 Like

Hi there,

The delete button has a data-element of ‘deleteCustomStampButton’.

You can remove this from the UI via:

instance.UI.disableElement('deleteCustomStampButton')

best regards,
Kevin

1 Like

This function is not working in version 11.4.0. Please let me know what will work in version 11.4.0

1 Like

Hi there,

With the new modular-UI, there is no data-element for that trash icon by the custom stamp:

You can use the CSS method to hide it by targeting that button class and setting it to be hidden:

.custom-rubber-stamp-row .Button.modular-ui.icon-only {
    visibility: hidden;
}

best regards,
Kevin

1 Like