Where is the tool name list?

WebViewer Version:
8.3.0

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?
No.

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:
(Think of this as an email subject)

Where is the tool name list?

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

About the updateTool API argument: toolName
Where is the tooName list?

I followed the guidance at PDFTron WebViewer Class: WebViewerInstance and checked the next page.
PDFTron Systems Inc. | Documentation
PDFTron WebViewer Namespace: Tools

An error occurred when setting the listed name.

example)
image

data-element name too.
image

image

Best Regards.

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

Hello, I’m Ron, an automated tech support bot :robot:

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Guides:APIs:Forums:

Hi Okabe,

The ToolNames list maps the property that you see to the actual tool name in the UI. So the way to use the API would be like this:

UI.updateTool(Core.Tools.ToolNames.STRIKEOUT, {
  tooltip: 'Test Tool Tip',
});

The following code produces this result:
image

However, it seems you may be looking to update the toolGroupButton. In which case the correct API would be this one: updateElement
With usage like this:

UI.updateElement('strikeoutToolGroupButton', {
  title: 'Test Tool Tip',
});

Producing the following result:
image

Let me know if there are any issues.

Best Regards,
Ahmad Moaaz
Software Developer
PDFTron Systems, Inc.
www.pdftron.com

Hi Ahmad.

Thank you for your reply.
Your explanation really helped.
I understand.

Thanks!!