Detailed description of issue
Hello! Is there a way to add a title attribute or a tooltip on the date picker widget? the title currently undefined.I have tried using tooltipName and updating the title on the html inner element
** Snip of Code**
const field = new Annotations.Forms.Field(Id, {
type: 'Tx',
tooltipName: 'blah' // could not get this to work
});
const annot = new Annotations.DatePickerWidgetAnnotation(field, {});
const createInnerDate = Annotations.DatePickerWidgetAnnotation.prototype.createInnerElement;
annot.createInnerElement = function () {
const el = createInnerDate.apply(annot, []) as HTMLInputElement;
el.title= 'blah' // could not get this to work
return el;
};
Are you able to go into any more detail on the setCustomData() solution? Having the same issue where seem to be unable to remove the “undefined” title from a DatePickerWidgetAnnotation.
This means to the end user when they hover over the DateWidgetAnnotationPicker they get a tooltip that says “undefined”.
Just adding on to this - this only seemed to work if putting title changes in annotations loaded event. Which is good enough for our use case.
webViewer.Core.annotationManager.getAnnotationsList().forEach((a) => {
if (a instanceof webViewer.Core.Annotations.DatePickerWidgetAnnotation) {
(a.innerElement as HTMLInputElement).title = '';
}
});