You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The TwigField is basically just a normal field with a default template. The problem is if you want to change the options of this field it will either have to specify the template again or you will lose it.
The quick and easy answer would be to have the TwigField extend the Field and change the behavior of the setOptions function to merge with the template. This would be a big change though.
The text was updated successfully, but these errors were encountered:
@mamazu You're right. FYI, there is a "addOption". @lchrusciel merged too quickly the notice about this issue in the doc.
But I'm in favour of the merge options with the setOptions, that was my initial idea when implementing the grid builder. I think it'd be better for DX as we already have users who have that issue.
The problem
The
TwigField
is basically just a normal field with a default template. The problem is if you want to change the options of this field it will either have to specify the template again or you will lose it.Example
Will result in the options being:
and not:
Possible solution
The quick and easy answer would be to have the
TwigField
extend theField
and change the behavior of thesetOptions
function to merge with the template. This would be a big change though.The text was updated successfully, but these errors were encountered: