All Downloads are FREE. Search and download functionalities are using the official Maven repository.

widgets.pbLink.pbLink.json Maven / Gradle / Ivy

There is a newer version: 1.0.9
Show newest version
{
  "id" : "pbLink",
  "name" : "Link",
  "type" : "widget",
  "custom" : false,
  "modelVersion" : "2.6",
  "description" : "Navigation link to another page or form",
  "template" : "@pbLink.tpl.html",
  "controller" : "@pbLink.ctrl.js",
  "properties" : [
    {
      "label" : "Interpret HTML",
      "name" : "allowHTML",
      "help" : "If you choose 'no', HTML code will be escaped instead of being interpreted. If you choose ‘Yes’, this could potentially lead to HTML injections attacks. Please take into account these risks.",
      "type" : "boolean",
      "defaultValue" : false,
      "bond" : "constant"
    },
    {
      "label" : "Text",
      "name" : "text",
      "type" : "text",
      "defaultValue" : "Link",
      "bond" : "interpolation"
    },
    {
      "label" : "Type",
      "name" : "type",
      "help" : "Specifies the type of link to create",
      "type" : "choice",
      "defaultValue" : "URL",
      "choiceValues" : [
        {
          "value" : "page",
          "label" : "Application page"
        },
        {
          "value" : "task",
          "label" : "Human task form"
        },
        {
          "value" : "process",
          "label" : "Process instantiation form"
        },
        {
          "value" : "overview",
          "label" : "Case overview"
        },
        {
          "value" : "URL",
          "label" : "Custom URL"
        }
      ],
      "bond" : "constant"
    },
    {
      "label" : "URL",
      "name" : "targetUrl",
      "showFor" : "properties.type.value === 'URL'",
      "type" : "text",
      "defaultValue" : "http://",
      "bond" : "expression"
    },
    {
      "label" : "Page token",
      "name" : "pageToken",
      "help" : "As used in the URL after the application token",
      "showFor" : "properties.type.value === 'page'",
      "type" : "text",
      "bond" : "expression"
    },
    {
      "label" : "Process name",
      "name" : "processName",
      "help" : "Specifies the process name",
      "showFor" : "properties.type.value === 'process'",
      "type" : "text",
      "bond" : "expression"
    },
    {
      "label" : "Process version",
      "name" : "processVersion",
      "help" : "Specifies the process version",
      "showFor" : "properties.type.value === 'process'",
      "type" : "text",
      "bond" : "expression"
    },
    {
      "label" : "Task Id",
      "name" : "taskId",
      "help" : "Specifies the task instance Id",
      "showFor" : "properties.type.value === 'task'",
      "type" : "text",
      "bond" : "expression"
    },
    {
      "label" : "Case Id",
      "name" : "caseId",
      "help" : "Specifies the case (process instance) Id",
      "showFor" : "properties.type.value === 'overview'",
      "type" : "text",
      "bond" : "expression"
    },
    {
      "label" : "Frame",
      "name" : "target",
      "help" : "Specifies where to open the linked document",
      "showFor" : "properties.type.value !== 'page'",
      "type" : "choice",
      "defaultValue" : "_self",
      "choiceValues" : [
        {
          "value" : "_self",
          "label" : "Current frame (_self)"
        },
        {
          "value" : "_parent",
          "label" : "Parent frame (_parent)"
        },
        {
          "value" : "_top",
          "label" : "Top frame (_top)"
        },
        {
          "value" : "_blank",
          "label" : "New window (_blank)"
        }
      ],
      "bond" : "constant"
    },
    {
      "label" : "Application URL token",
      "name" : "appToken",
      "caption" : "Will be retrieved from the URL if not set ('app' parameter). You can pass it in the query string of the preview URL for tests.",
      "help" : "Determines the application theme that will be used by the target page. It is recommended not to hard code it.",
      "showFor" : "properties.type.value !== 'URL' && properties.type.value !== 'page'",
      "type" : "text",
      "bond" : "expression"
    },
    {
      "label" : "Application URL token",
      "name" : "appToken",
      "caption" : "Will be retrieved from the URL if not set ('app' parameter). You can pass it in the query string of the preview URL for tests.",
      "help" : "Determines target application. It is recommended not to hard code it.",
      "showFor" : "properties.type.value === 'page'",
      "type" : "text",
      "bond" : "expression"
    },
    {
      "label" : "URL parameters",
      "name" : "urlParams",
      "caption" : "A JSON object",
      "help" : "Additional request parameters added to the query string",
      "showFor" : "properties.type.value !== 'URL'",
      "type" : "text",
      "bond" : "expression"
    },
    {
      "label" : "Alignment",
      "name" : "alignment",
      "type" : "choice",
      "defaultValue" : "left",
      "choiceValues" : [
        "left",
        "center",
        "right"
      ],
      "bond" : "constant"
    },
    {
      "label" : "Style",
      "name" : "buttonStyle",
      "type" : "choice",
      "defaultValue" : "link",
      "choiceValues" : [
        "link",
        "default",
        "primary",
        "success",
        "info",
        "warning",
        "danger"
      ],
      "bond" : "expression"
    }
  ],
  "assets" : [
    {
      "id" : "828a0fdd-65e0-4140-9437-51901853759e",
      "name" : "http-param-serializer.service.js",
      "type" : "js",
      "order" : 1,
      "external" : false
    }
  ],
  "requiredModules" : [
    "bonitasoft.ui.services"
  ],
  "webResources" : [ ],
  "icon" : "",
  "order" : 14,
  "hasHelp" : false
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy