ComPDFKit Web SDK
    Preparing search index...

    Function updateElement

    • Overrides properties of a button or another element with overrides (img / icon / label / title / disabled / hidden / className / style / onClick …, any field a component reads from its item; the overrides replace the element's previous overrides as a whole, {} clears them). Matching items in headers, dropdowns and popups all change; the overrides go into the store's customElementOverrides and components merge them into their properties. Non-object overrides are ignored with a warning; null / undefined are ignored silently. colorPalette is a backward-compatible branch forwarded to setColorPalette (apis/palette).

      Parameters

      • dataElement: string

        The dataElement of the element.

      • overrides: Record<string, unknown>

        The properties to override.

      Returns void

      instance.UI.updateElement('downloadButton', { title: 'Save a copy' });