Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Cleop opened this issue May 14, 2018 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested starter

Comments

@Cleop
Copy link
Member

Cleop commented May 14, 2018

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?

@nelsonic nelsonic added enhancement New feature or request help wanted Extra attention is needed question Further information is requested starter labels May 14, 2018
@Cleop
Copy link
Member Author

Cleop commented May 14, 2018

@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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested starter
Projects
None yet
Development

No branches or pull requests

2 participants