From 7338f64b511ec33381fef3aab6e155f743dcd088 Mon Sep 17 00:00:00 2001 From: Niklas Kiefer Date: Fri, 22 Sep 2023 12:56:33 +0200 Subject: [PATCH] chore(editor): update options tooltip Closes #784 --- .../features/properties-panel/groups/ValuesGroups.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/form-js-editor/src/features/properties-panel/groups/ValuesGroups.js b/packages/form-js-editor/src/features/properties-panel/groups/ValuesGroups.js index a00edda36..69842b07a 100644 --- a/packages/form-js-editor/src/features/properties-panel/groups/ValuesGroups.js +++ b/packages/form-js-editor/src/features/properties-panel/groups/ValuesGroups.js @@ -33,7 +33,7 @@ export default function ValuesGroups(field, editField) { { id: valuesSourceId, label: 'Options source', - tooltip: '"Static" defines a constant, predefined set of form options.\n"Dynamic" defines options that are populated dynamically, adjusting based on variable data for flexible responses to different conditions or inputs.', + tooltip: getValuesTooltip(), component: Group, entries: ValuesSourceSelectEntry({ ...context, id: valuesSourceId }) } @@ -68,4 +68,12 @@ export default function ValuesGroups(field, editField) { } return groups; +} + +// helpers ////////// + +function getValuesTooltip() { + return '"Static" defines a constant, predefined set of form options.\n\n' + + '"Input data" defines options that are populated dynamically, adjusting based on variable data for flexible responses to different conditions or inputs.\n\n' + + '"Expression" defines options that are populated from a FEEL expression.'; } \ No newline at end of file