ComPDFKit Web SDK
    Preparing search index...

    Function getGroupedItems

    • Gets a GroupedItems instance (children as component instances). Warns and returns null when it does not exist or has another type.

      Parameters

      • dataElement: string

        The dataElement of the GroupedItems.

      Returns GroupedItems | null

      The GroupedItems, or null.

      // The tools shown under the Annotate ribbon
      const annotateTools = instance.UI.getGroupedItems('annotateGroupedItems');
      annotateTools.setItems(annotateTools.items.filter(item => item.dataElement !== 'eraserToolButton'));