Title - AFS

AFS Integration Guide

Product
AFS
AFS_Version
7.7
Category
Reference Guide

This result component displays a link whose label is the result title and target is result URI (these are default values, they are configurable). Its name is Title.

It has the following configuration options:

Title Component - Displays a link whose default label is the result title and default target is result URI.

Parameter

Type

Card

Default

Description

titleExpression

String

Optional

undefined (returns the result title formatted as a KWIC)

Reply formatting expression that formats the label.

urlExpression

String

Optional

undefined (returns the result URI)

Reply formatting expression that returns the result URL (target of the link)

openUrlInNewWindow

Boolean

Optional

false

Indicates if the opening of the current result should occur in a new window (true) or the current one (false).

Integration example that displays a link whose label is title and target is URI (corresponds to the default configuration values):

<div class="AFSWidgetResultComponent" title="Title">
<script type="application/json">
{ "titleExpression": "kwic:$.title", "urlExpression": "jpath:$.uri" }
</script>
</div>