Skip to content

Commit

Permalink
feat(editor): improve dynamic input field description
Browse files Browse the repository at this point in the history
Closes #303
  • Loading branch information
smbea authored and Niklas Kiefer committed Feb 13, 2023
1 parent e4a01e3 commit 898d759
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,20 @@ export default function InputKeyValuesSourceEntry(props) {
id
} = props;

const schema = '[\n {\n "label": "dollar",\n "value": "$"\n }\n]';

const description = <div>
Define which input property to populate the values from.
<br /><br />The input property must follow this schema:
<pre><code>{schema}</code></pre>
</div>;

return [
{
id: id + '-key',
component: InputValuesKey,
label: 'Input values key',
description: 'Define which input property to populate the values from',
description,
isEdited: isTextFieldEntryEdited,
editField,
field,
Expand Down

0 comments on commit 898d759

Please sign in to comment.