Skip to content

Commit

Permalink
chore(editor): update options tooltip
Browse files Browse the repository at this point in the history
Closes #784
  • Loading branch information
Niklas Kiefer committed Sep 22, 2023
1 parent 5ea8290 commit 7338f64
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
}
Expand Down Expand Up @@ -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.';
}

0 comments on commit 7338f64

Please sign in to comment.