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 to change color month picker and solve the toggle previous button problem? #330

Open
cheekean2012 opened this issue Jun 15, 2021 · 0 comments

Comments

@cheekean2012
Copy link

Ionic version: (check one with "x")
[ ] 2.x
[ ] 3.x
[ ] 4.x
[x] 6.x

Ion2-calendar mode: (check one with "x")
[ x] components mode
[ ] modal mode

I'm submitting a ... (check one with "x")
[ ] bug report
[ ] feature request
[ x] help me

Current behavior:
I want to custom my month picker color, but it doesn't works. And I also want to allow toggle previous month button, but now I only can press from month picker not in toggle previous button.

Expected behavior:
The custom color in my optionsRange, and the color value is 'primary'.
For the toggle previous button is need to available, not just only can show current or future month.

Steps to reproduce:
Create a color in optionsRange: CalendarComponentOptions, and change the color month picker
I don't have any idea to know how to fixed the button problem.

Related code:

in my html page to change the month picker color is
<ion-calendar name="date" style="background-color: black;" [options]="optionsRange" formControlName="date"
(onChange)="onChange($event)" type="string" [format]="'YYYY-MM-DD'">

in my component.page.ts to change the month picker color code is
optionsRange: CalendarComponentOptions = {
color:'primary',
};

Sorry, I'm a new beginner to start to learn using plugin. thanks

help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant