Transformations Component

This component is available in the
libs/integrations/invox-dialogs folder of the SDK.The Transformations Component is a modal window that allows transformations management. Transformations map spoken words to abbreviated or alternative text (e.g. saying "Electrocardiograma" → writes "ECG"). This high-level component is designed to be integrated quickly and easily in your web application.
Getting started
1. Import resources
<!-- Invox Dictation SDK - API -->
<script type="text/javascript" src="libs/invox.min.js" charset="UTF-8"></script>
<!-- Invox Dictation SDK - Transformations Component -->
<script type="text/javascript" src="libs/integrations/invox-dialogs/invox-transformations-component.min.js" charset="UTF-8"></script>
<link rel="stylesheet" href="libs/integrations/invox-dialogs/invox-transformations-component.css">
2. Initialize component
- Create a container in the DOM. You can use the same container for all dialog components:
<div id="invox-dialogs-container"></div> - Create the component:
const transformationsDialog = INVOXMDComponent_Transformations.create("invox-dialogs-container");
3. Show component
transformationsDialog.show();
4. Hide component (optional)
The dialog can also be closed by pressing ESC or clicking the Close button.
transformationsDialog.hide();
5. Remove component (optional)
transformationsDialog.remove();
Public methods
create
const transformationsDialog = INVOXMDComponent_Transformations.create("invox-dialogs-container");
show
transformationsDialog.show();
hide
transformationsDialog.hide();
remove
transformationsDialog.remove();
Customize design
Uses the same CSS variables as the Dictionary Component. See invox-transformations-component.css for the full list.
How to use

- Help button — Displays the help view.
- Fullscreen button — Enlarges the view to full screen.
- Close button — Closes the dialog.
- Search bar — Search transformations by name.
- Edit button — Modify the selected transformation.
- Spoken word — The word that is spoken during dictation.
- Written word — The text that will be written instead.
- Close button — Close the dialog.
- New button — Create a new transformation.
- Resize handle — Drag to resize the dialog.