UserContexts - AFS

AFS Integration Guide

Product
AFS
AFS_Version
7.9
Category
Reference Guide

This widget allows a logged-in user to save a set of applied filters (facets) for a future reuse. These custom search scopes can be applied or removed on any previous search. The aim of this widget is to simplify the creation of complex or repetitive queries.

Here is an example of an integration that can be achieved for this UserContexts widget. It requires some CSS magic and configuration tuning.

Here, no scopes are selected.

UserContexts without selection

When some filters are selected, it becomes possible to create a new search scope.

UserContexts when creating a new scope

When a scope is applied, existing filters are kept.

UserContexts when a scope is applied

When a scope is active, it can be deleted from the dropdown pop-up.

UserContexts when deleting an applied scope

List of all existing parameters that can be used to tune widget behavior.

Parameter

Type

Card

Default

Description

displayTitle

String

Optional

true

Indicates if a title in front of the widget has to be displayed.

creationAllowed

Boolean

Optional

true

Indicates if a user can add new scopes to the list.

deletionAllowed

Boolean

Optional

true

Defines the label to use when no scope are selected.

noneItemLabel

String

Optional

None

Defines the label to use when no scope are currently selected.

noneItemLabelWhenSelected

String

Optional

None

Defines the label to use when no scope are currently selected.

createItemLabel

String

Optional

Save filters as new search scope

Defines the label to use for the create action.

deleteItemLabel

String

Optional

Delete applied scope

Defines the label to use for the delete action.