Dictionary Component

This component is available in the
libs/integrations/invox-dialogs folder of the SDK.The Dictionary Component is a modal window that allows word management. 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 - Dictionary Component -->
<script type="text/javascript" src="libs/integrations/invox-dialogs/invox-dictionary-component.min.js" charset="UTF-8"></script>
<link rel="stylesheet" href="libs/integrations/invox-dialogs/invox-dictionary-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 dictionaryDialog = INVOXMDComponent_Dictionary.create("invox-dialogs-container");
3. Show component
dictionaryDialog.show();
4. Hide component (optional)
The dialog can also be closed by pressing ESC or clicking the Close button.
dictionaryDialog.hide();
5. Remove component (optional)
dictionaryDialog.remove();
Public methods
create
const dictionaryDialog = INVOXMDComponent_Dictionary.create("invox-dialogs-container");
show
dictionaryDialog.show();
hide
dictionaryDialog.hide();
remove
dictionaryDialog.remove();
Customize design
At the beginning of invox-dictionary-component.css you can find CSS variables for easy customization:
| Variable | Description | Default |
|---|---|---|
--invox-dictionary-dialog__z-index | z-index | 700 |
--invox-dialogs-color__primary | Primary color | #52619f |
--invox-dialogs-color__primary--hover | Primary hover color | #415491 |
--invox-dialogs-size__width | Dialog width | 400px |
--invox-dialogs-size__height | Dialog height | 400px |
--invox-dialogs-size__border-radius | Border radius | 5px |
How to use

- Help button — Displays the help view.
- Fullscreen button — Enlarges the view to full screen.
- Close button — Closes the dialog.
- List selector — Filter by user items, speciality items, or all items.
- Search bar — Search items by name.
- Shared item icon — Indicates the word is shared with users of the same speciality.
- Edit button — Modify the selected word.
- Close button — Close the dialog.
- New button — Create a new word.
- Resize handle — Drag to resize the dialog.