Skip to content

Instantly share code, notes, and snippets.

@breadlesscode
Created September 23, 2019 14:45
Show Gist options
  • Save breadlesscode/4f522675a6784a2d7442bea574bc1063 to your computer and use it in GitHub Desktop.
Save breadlesscode/4f522675a6784a2d7442bea574bc1063 to your computer and use it in GitHub Desktop.
This is a form element for the Package Neos.Form.FusionRenderer to render multiple form elements in a row.
prototype(Wysiwyg.OGE.CorporateSite:FormElement.MultiFieldGroup) < prototype(Neos.Fusion:Tag) {
tagName = 'div'
attributes.class = 'row'
content = afx`
<Neos.Fusion:Loop items={ element.elements } itemName="element">
<Neos.Fusion:Augmenter class={ element.properties.colClass ? element.properties.colClass : 'col' }>
<Neos.Fusion:Renderer type={element.type} />
</Neos.Fusion:Augmenter>
</Neos.Fusion:Loop>
`
@process.renderCallbacks = Neos.Form.FusionRenderer:RenderCallbacks {
formRuntime = ${formRuntime}
formElement = ${containerElement}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment