Namespace: UI

UI

UI namespace of WebViewer Video

Example

WebViewer(...)
    .then(function(instance) {
      const license = '---- Insert commercial license key here after purchase ----';
      const videoInstance = await initializeVideoViewer(
        instance,
        {
          license,
        },
      );

      videoInstance.UI.updateElement('redactApplyButton', {
        onClick: (redactAnnotations) => {
          // custom code here
        }
      });
    });

Methods


<static> updateElement(dataElement, props)

Update an WebViewer Video element in the viewer. Valid options are 'redactApplyButton'.
Parameters:
Name Type Description
dataElement string the data element of the element that will be updated.
props object an object that is used to override an existing item's properties.
Returns:
Type
void