Created
September 23, 2019 14:45
-
-
Save breadlesscode/a2e61d3f6b6cae961eefcdbf06d74280 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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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