Is there some way to hold "configuration", for example, for all DateTimePickerFor controls in all views?If I have DateTimePickerFor like this:
@Html.EJ().DateTimePickerFor(model => model.DatumOd).Width("250px").Locale("hr-HR").DateTimeFormat("dd.MM.yyyy. HH:mm").ShowRoundedCorner(true)DateTimePickerButtonText(text => text.Today("Danas").TimeNow("Vrijeme sada").Done("Prihvati").TimeTitle("Vrijeme"))
Can this part ".Locale("hr-HR").DateTimeFormat("dd.MM.yyyy. HH:mm").ShowRoundedCorner(true)DateTimePickerButtonText(text => text.Today("Danas").TimeNow("Vrijeme sada").Done("Prihvati").TimeTitle("Vrijeme"))" be somehow globally controlled? So, instead of write that long "config" every time, maybe to be like .Config("DateTimePickerOptions"), where "DateTimePickerOptions" is some kind of JSON to hold that options.
And, when I want to change that for all the DateTImePicker controls, I can do it in just one place.
Thanks.
B.