Adding comment header/title in stick note annotation
is it possible to add a comment header/title(editable i.e can be different for every comment) above the comment section and below the author name/date in the sticky note annotation? if yes, could you please share the code snippet for this in react js.
attaching the requirement marked by red arrow.
Hi
Thanks for contact us for support. This is Jack from Webviewer team
Currently we don’t have any feature for this. But there is a workaround. You could follow this guide for customize the Webviewer UI. You could do some customization in the NodeHeader component.
Could you please share some code references as well for the same?
also, do I need to make changes directly in the node header component, or need to create a separate component for this requirement?
will it be possible to replace the given ‘Guest’ with a comment header/title (which can be a text field or something else so that it can be different for different comments)?
Attaching the image for more clearer picture
Hi
Because we didn’t add any feature for replace the author into text field, the only way should be the customization. If you want to change the author to the title, maybe you could check from this guide. We don’t really recommend this way though.
I think should just do the customization.
Thanks For the reply, I tried the below code, which is not working as it seems the method is expecting the return of a string. can’t we just return HTML? as I need one more similar section like the comment section as given in the above image. annotationManager.setAnnotationDisplayAuthorMap(() => { return < textArea> Comment header < textArea> }); it gives me Uncaught Error: TypeError: e.toLowerCase is not a function
Hi
Currently we don’t have any api for change the html of the response node. As I have mentioned before, the only way should be you do the customization by yourself.