dwyl/elm-datepicker

How best to customise datepicker UI within a project for different instances?

Opened this issue · 1 comments

Cleop commented

I'm using the datepicker in 2 different instances on my project but the UI for each is slightly different. In one I want to give the dropdown title a border and in the other I don't. At the moment they're being generated in the same module and as a result if I add/remove the border then it applies in both places.

I was thinking of creating a function which checks in the model which page is being rendered or whether a datepicker-border key has a value of True or not.

However I wondered whether there was a solution internally on the module that may be neater. @Danwhy - do you have any thoughts on this?

Cleop commented

@Danwhy and I discussed this and agreed that my proposed solution would be suitable which I will go ahead and do. Unless anyone else has any thoughts?