ComPDFKit Web SDK
    Preparing search index...

    Function addModularHeaders

    • Adds headers (a single header or an array) together with the items they contain. A header with the same dataElement is replaced.

      Parameters

      • headerList: object | object[]

        A header or an array of headers.

      Returns void

      const { ModularHeader, CustomButton } = instance.UI.Components;
      instance.UI.addModularHeaders([
      new ModularHeader({
      dataElement: 'myLeftHeader',
      placement: 'left',
      items: [new CustomButton({ dataElement: 'helloButton', label: 'Hi', onClick: () => alert('Hello') })],
      }),
      ]);