-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathUrlAction.cs
29 lines (27 loc) · 1.36 KB
/
UrlAction.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright © 2023 Textkernel BV. All rights reserved.
// This file is provided for use by, or on behalf of, Textkernel licensees
// within the terms of their license of Textkernel products or Textkernel customers
// within the Terms of Service pertaining to the Textkernel SaaS products.
namespace Textkernel.Tx.Models.API.Matching.UI.Hooks
{
/// <summary>
/// An action performed with a URL (opening a new window, displaying some webpage)
/// </summary>
public class UrlAction
{
/// <summary>
/// The URL to show (either in another tab/window or in an iFrame inside the Matching UI).
/// <br/>NOTE: the UI will do a string.replace() on this URL to replace {id} with the document
/// id (that this action was performed on) and {indexId} with the index id (containing the document the action
/// was performed on).
/// <br/>
/// For example: https://my-ats.com/contact-info/{id} gets transformed to https://my-ats.com/contact-info/34879
/// </summary>
public string Url { get; set; }
/// <summary>
/// Use "tx" to open a popup inside the Matching UI and display the webpage.
/// Any other value will be used just like the target attribute on a normal anchor tag ("_blank" for a new tab/window, etc).
/// </summary>
public string Target { get; set; }
}
}