Skip to content

Commit

Permalink
✅ [open-formulieren/open-forms#3576] Story for editgrid with content
Browse files Browse the repository at this point in the history
  • Loading branch information
SilviaAmAm committed Nov 9, 2023
1 parent 36ecebc commit 4017411
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/formio/components/EditGrid.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ const defaultNested = [
delimiter: true,
allowNegative: false,
},
{
key: 'content',
html: '<p>This is some nice content without a label</p>',
type: 'content',
input: false,
label: '',
tableView: false,
},
];

export default {
Expand Down
2 changes: 1 addition & 1 deletion src/formio/templates/editGridRow.ejs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% for (const key in ctx.flattenedComponents) { %}
{% if (ctx.isVisibleInRow(ctx.flattenedComponents[key]) && ctx.flattenedComponents[key].label !== "") { %}
{% if (ctx.isVisibleInRow(ctx.flattenedComponents[key]) && ctx.flattenedComponents[key].label) { %}
<div>{{ctx.flattenedComponents[key].label}}: {{ ctx.getView(ctx.flattenedComponents[key], ctx.row[key]) }}</div>
{% } %}
{% } %}
Expand Down

0 comments on commit 4017411

Please sign in to comment.