org.visallo.detail.text

Replace Extracted Text with custom component

Replaces the content of a collapsible text section in the inspector.

Only one extension can replace a given text section, the first one will win.

Registration

registry.registerExtension("org.visallo.detail.text", config)

Source:
Tutorials:
See:
Configuration Properties:
Name Type Description
componentPath string

The component to render instead of the text

shouldReplaceTextSectionForVertex shouldReplaceTextSectionForVertex

Whether the component should be rendered instead of the default

Validation Function

Extensions registered must pass this validation check to be used.

function extensionValidator(e) {
    return _.isFunction(e.shouldReplaceTextSectionForVertex) && _.isString(e.componentPath);
}

Type Definitions

Component

Source:
Properties:
Name Type Description
model object

The vertex/edge

propertyName string
propertyKey string

shouldReplaceTextSectionForVertex(model, propertyName, propertyKey)

Source:
Parameters:
Name Type Description
model object

The vertex/edge

propertyName string
propertyKey string