Invox Dictation SDK Version:

Transformations Component


Transformations Component

This component is available as the TransformationsDialog named export from the npm package.

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

Install the SDK via npm:

npm install @invox-medical-npm/invox-dictation

Then import TransformationsDialog as a named export:

import INVOX, { TransformationsDialog } from "@invox-medical-npm/invox-dictation";

Component styles are auto-injected at runtime — no separate CSS import needed.

2. Initialize component

  1. Create a container in the DOM. You can use the same container for all dialog components:
    <div id="invox-dialogs-container"></div>
    
  2. Create the component:
    const transformationsDialog = TransformationsDialog.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 = TransformationsDialog.create("invox-dialogs-container");

show

transformationsDialog.show();

hide

transformationsDialog.hide();

remove

transformationsDialog.remove();

Customize design

Uses the same auto-injected CSS variables as the Dictionary Component.

How to use

Transformations Component elements

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