Created
October 26, 2018 06:43
-
-
Save grebaldi/ac246a7bbfc55a7d3658aef270297669 to your computer and use it in GitHub Desktop.
Safe way to provide default values for props?
This file contains hidden or 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(Vendor.Site:MyComponent) < prototype(Neos.Fusion:Component) { | |
[email protected] = Vendor.Site:DefaultValue { | |
value = 'myValue' | |
} | |
} | |
prototype(Vendor.Site:DefaultValue) { | |
@if.noValueProvided = ${!value} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment