Datepicker as a popup
Closed this issue · 5 comments
Hello,
Can we add this datepicker as a pop instead of a modal? Thanks
Yes, I checked it as you mentioned and that is what I want thanks. how to customize the size and other styles? I tried accessing scss variables in the datepicker.component.scss in my pages scss file. But it seems not working. Any help?
I tried changing the header color using the below code in my pages .scss file
ionic2-datepicker .datepicker-wrapper .datepicker-header { color: white; background-color: #310096; display: flex; flex-flow: column; height: 35%; }
but it is not working. Can't I customize the datepicker by overriding the style variables externally without making changes to the datepicker.component.ts
Sorry I assumed that you forked the project since you mentioned the scss file.
Here is my overload:
ionic2-datepicker,
ionic2-datepicker .datepicker-wrapper {
background: linear-gradient(135deg, #172446 0%, #2a3c60 26%, #5393ae 61%, #5393ae 66%, #335e88 81%, #336084 100%);
.datepicker-header {
background-color: rgba(0, 0, 0, 0.25)!important;
.weekday-header {
background-color: rgba(0, 0, 0, 0.25)!important;
}
}
.button {
background-color: rgba(0, 0, 0, 0.25)!important;
}
.row {
color: white!important;
.datepicker-selected {
color: black;
}
.datepicker-current {
color: #bdbdbd;
}
}
}