Skip to content

Commit

Permalink
feat(editor): improve dynamic input field description
Browse files Browse the repository at this point in the history
Related to #303
  • Loading branch information
smbea authored and Niklas Kiefer committed Feb 16, 2023
1 parent 15668e5 commit 72fb7ce
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 72fb7ce

Please sign in to comment.