Custom Button FreeText

I have a custom button bar and I need to add another “FreeText” button but I can’t find the code for the button

instance.UI.setHeaderItems(header => {
        const items = header.getItems();
        const lateral = items.slice(0, 1)[0];
        this.zoom = items.slice(3, 4)[0];
        const menu = [ {
          type: 'toolButton',
          toolName: 'AnnotationCreateDistanceMeasurement'
        }, {
          type: 'toolButton',
          toolName: 'AnnotationCreatePerimeterMeasurement'
        }, {
          type: 'toolButton',
          toolGroup: 'shapeTools',
          toolName: 'AnnotationCreateArcMeasurement'
        }, {
          type: 'toolButton',
          toolGroup: 'shapeTools',
          toolName: 'AnnotationCreateAreaMeasurement'
        }, {
          type: 'toolButton',
          toolGroup: 'shapeTools',
          toolName: 'AnnotationCreateRectangularAreaMeasurement'
        }, {
          type: 'toolButton',
          toolGroup: 'shapeTools',
          toolName: 'AnnotationCreateEllipseMeasurement'
        }, {
          type: 'toolButton',
          toolGroup: 'shapeTools',
          toolName: 'AnnotationCreateRectangle'
        }, {
          type: 'toolButton',
          toolGroup: 'shapeTools',
          toolName: 'AnnotationCreateEllipse'
        }, {
          type: 'toolButton',
          toolGroup: 'shapeTools',
          toolName: 'AnnotationCreateFreeHandHighlight'
        }, {
          type: 'toolButton',
          toolGroup: 'shapeTools',
          toolName: 'AnnotationCreateArrow'
        }, {
          type: 'toolButton',
          toolName: 'AnnotationCreateCallout'
        }
      });

Hi there,

You can find the full list of Tools in the API documentation here:

For the free-text tool, that would be equivalent to

Core.Tools.ToolNames.FREETEXT = 'AnnotationCreateFreeText'

best regards,
Kevin