Constructor
Creates a row data structure in the table for a case attribute using a similarity configuration. If the attribute contains nested data, this function can create several nested rows.
The attribute name to create row data for
Object containing all attributes and their types
Similarity description object (can be null)
Row data object with attribute info, cases, value and optional children for nested attributes
Creates and initializes a table in the case comparisonpanel.
This method destroys any existing table, creates a new Tabulator instance with predefined columns for attribute comparison, and sets up event handlers for interactive elements like taxonomy links and pin buttons.
The data array to populate the table with.
Initializes the table with attributes data and similarity configuration. Sets up the data structure for displaying attributes in a tabulator table, separating attributes used in similarity functions from remaining attributes.
Object containing all attributes with their types
Similarity description object
The attribute ID to be used as case identifier
Updates the header information with case IDs and similarity value. If a value is null, it resets to empty values.
Optional
leftCaseId: null | string = nullThe ID of the left case to display in the header
Optional
rightCaseId: null | string = nullThe ID of the right case to display in the header
Optional
similarity: null | number = nullThe similarity value between the two cases
Updates rows in the table by setting values for a specific column. Handles both primitive values and nested objects by recursively updating child attributes.
The source object containing the data to update with
The attributes object mapping keys to their corresponding rows
The name of the column to update in the target rows
Update the similarity value between two cases. It changes the global similarity value on the header and the local similarity values
An object that contains the similarity value (with global and local similarity values)
The color employed for the global similarity value
Updates similarity values in an attribute list using a :simvizTypes/SimilarityValue
object. If this object
is null, then it removes similarity values. This function is used recursively
to processes nested attributes.
The similarity value (can be null)
The list of attributes that will be updated
A table renderer to display the case comparator. It uses library, which supports nested rows and custom renderers for different types of data attributes