Methods
Methods
Add an event listener to the text comparison instance.
Parameters:
Name | Type | Description |
---|---|---|
action |
||
listener |
Returns:
- Type
- void
Get the changes for the text comparison instance.
Returns:
The changes.
- Type
- Array.<TextComparisonChange>
Get the visibility state for the text comparison changes.
Returns:
The visibility state for the text comparison changes.
- Type
- boolean
Get the current change index for the text comparison instance.
Returns:
The current change index.
- Type
- number
Get the inner toolbar items for the text comparison instances.
Returns:
The toolbar items.
- Type
- Array.<TextComparisonInnerToolbarItem>
Get the scroll lock state for the text comparison instance.
Returns:
The scroll lock state.
- Type
- boolean
Get the toolbar items for the text comparison instance.
Returns:
The toolbar items.
- Type
- Array.<TextComparisonToolbarItem>
Go to the next change in the text comparison instance.
Returns:
The index of the new change.
- Type
- number
Go to the previous change in the text comparison instance.
Returns:
The index of the new change.
- Type
- number
Jump to a specific change in the text comparison instance.
Parameters:
Name | Type | Description |
---|---|---|
changeIndex |
number | The index of the change to jump to. |
Returns:
The index of the new change.
- Type
- number
Remove an event listener from the text comparison instance.
Parameters:
Name | Type | Description |
---|---|---|
action |
||
listener |
Returns:
- Type
- void
Set the comparison sidebar configuration for the text comparison instance.
Parameters:
Name | Type | Description |
---|---|---|
comparisonSidebarConfig |
Returns:
- Type
- Promise.<void>
Set the visibility of comparison changes for the text comparison instance.
Parameters:
Name | Type | Description |
---|---|---|
flag |
boolean | if isComparisonVisible is true, the comparison changes are visible. |
Returns:
- Type
- void
Set the current change index for the text comparison instance.
Parameters:
Name | Type | Description |
---|---|---|
changeIndex |
number | The index of the change to set. |
Returns:
- Type
- void
Set the toolbar items for the text comparison instance.
Parameters:
Name | Type | Description |
---|---|---|
toolbarItemsCallback |
Array.<TextComparisonInnerToolbarItem> | SetToolbarItemsFunction | The toolbar items to set. |
Returns:
- Type
- void
Set the scroll lock for the text comparison instance.
Parameters:
Name | Type | Description |
---|---|---|
flag |
boolean | scrollLockEnabled if true, scrolling is locked. |
Returns:
- Type
- void
Set the toolbar items for the text comparison instance.
Parameters:
Name | Type | Description |
---|---|---|
toolbarItemsCallback |
Array.<TextComparisonToolbarItem> | SetToolbarItemsFunction | The toolbar items to set. |
Returns:
- Type
- void
Unload the text comparison instance.
Returns:
- Type
- void