From 4d59ccf785f23d6b5345600f979cac16c2adeec7 Mon Sep 17 00:00:00 2001 From: Philipp Fromme Date: Thu, 31 Oct 2024 14:47:33 +0100 Subject: [PATCH] feat: configure FEEL popup links --- lib/camunda-cloud/Modeler.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/lib/camunda-cloud/Modeler.js b/lib/camunda-cloud/Modeler.js index 9589519b..fca69b44 100644 --- a/lib/camunda-cloud/Modeler.js +++ b/lib/camunda-cloud/Modeler.js @@ -46,6 +46,27 @@ export default function Modeler(options = {}) { }, propertiesPanel: { tooltip: ZeebeTooltipProvider, + getFeelPopupLinks: (type) => { + if (type === 'feel') { + return [ + { + label: 'Learn FEEL expressions', + url: 'https://docs.camunda.io/docs/components/modeler/feel/what-is-feel/' + }, + { + label: 'Try FEEL Copilot', + url: 'https://feel-copilot.camunda.com/' + } + ]; + } else if (type === 'feelers') { + return [ + { + label: 'Learn templating', + url: 'https://docs.camunda.io/docs/components/modeler/forms/configuration/forms-config-templating-syntax/' + } + ]; + } + }, ...options.propertiesPanel } };