Meteor-Community-Packages / meteor-autoform-bs-datepicker

Custom "bootstrap-datepicker" input type for AutoForm
MIT License
25 stars 32 forks source link

datePickerOptions as a function in schema #51

Open polygonwood opened 2 years ago

polygonwood commented 2 years ago

I would be handy to be able to define the datePickerOptions as a function in a schema, which is executed at the moment the autoform is created (and not at creation time of the schema only)

I found a way around with a tracker modifying the schema definition (in my case to set the locale of the user to the language option of the date picker), but that's a cumbersome (and hard to understand afterwards) method