LinioIT / dynamic-form-bundle

Generates symfony forms based on Yaml configuration files
19 stars 11 forks source link

Added defaultValue for NumberField. #7

Closed IsraelLinioMx closed 9 years ago

IsraelLinioMx commented 9 years ago
nesl247 commented 9 years ago

Is there a reason it has to be called data instead of value? I'm not saying either way is correct, but since we are adding a defaultValue key, it might make sense to keep the parameter with either the same or similar name.

IsraelLinioMx commented 9 years ago

Yes @nesl247 , in symfony we have to define that key as data but when we send this value to Angular-Formly we need that this key will be called defaultValue. http://angular-formly.com/#/example/field-options/default-value

nesl247 commented 9 years ago

Ah ok. I avoid Symfony forms at all cost, forgot about that.