Overview

The linkTemplate formatter allows you to add a navigation link to another page with references to data on your current page.

Properties

PropertyDescription
nameSet this to “linkTemplate” to use this formatter.
pathnameThe URL of the destination. Clear will automatically prepend this path with https://yoursubdomain.clearui.com/clearui/.
target (Optional)A value of “target”: “_blank” allows you to open the link in another tab or window.

Examples

Input

To navigate to another page from an input, you can use the following:

"formatter": {
  "pathname": "customers/customer/?CUSTOMER={0}",
  "name": "linkTemplate"
}

The result will look like this:

DataTable

Within a DataTable, you can add a hyperlink to a column by using the following:

{
  "formatter": {
    "pathname": "products/material/?MATERIAL={MATNR}",
    "name": "linkTemplate"
  },
  "required": true,
  "name": "MATNR",
  "label": "Material"
}

The result will look like this: