UI namespace of WebViewer Audio
Example
WebViewer(...)
.then(function(instance) {
const license = '---- Insert commercial license key here after purchase ----';
const audioInstance = await initializeAudioViewer(
instance,
{
license,
},
);
audioInstance.UI.updateElement('regionDeleteButton', { onClick: () => console.log('do something') });
});
Methods
-
<static> updateElement(dataElement, props)
-
Update an WebViewer Audio element in the viewer. Valid options are 'redactApplyButton' and 'regionDeleteButton'.
Parameters:
Name Type Description dataElementstring the data element of the element that will be updated. propsobject an object that is used to override an existing item's properties. Returns:
- Type
- void