Diff Result
Diff Result
- convertDiffToHighlights
- getDiff
- getHTMLAsText
- getObjectDiff
- getPropertyDiff
- init
- stringToArray
- structCreate
convertDiffToHighlights()
Takes a diff array and returns a left and right highlighted result
Arguments
Name | Type | Required | Default | Options | Description |
---|---|---|---|---|---|
aDiff | array | Yes |
getDiff()
Returns an array of diff structs
Arguments
Name | Type | Required | Default | Options | Description |
---|---|---|---|---|---|
old | string | Yes | Original array of words to compare | ||
new | string | Yes | New array of words to compare |
getHTMLAsText()
Converts html to plain text indented according to nesting
Arguments
Name | Type | Required | Default | Options | Description |
---|---|---|---|---|---|
html | string | Yes |
getObjectDiff()
Performs diff on all visible properties according to their type
Arguments
Name | Type | Required | Default | Options | Description |
---|---|---|---|---|---|
left | struct | Yes | |||
right | struct | Yes | |||
stMetadata | struct | No | #structnew()# | ||
includeInvisibleProperties | boolean | No | false | Set to true to include properties that aren't displayed in forms. Note that this will never include system properties, only content properties. |
getPropertyDiff()
Performs diff on the property according to its type
Arguments
Name | Type | Required | Default | Options | Description |
---|---|---|---|---|---|
typename | string | Yes | |||
left | string | Yes | |||
right | string | Yes | |||
stMetadata | string | Yes |