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

Calender : Can't select specific month for Calender View #13900

Closed
SanchitGeez opened this issue Oct 17, 2023 · 1 comment
Closed

Calender : Can't select specific month for Calender View #13900

SanchitGeez opened this issue Oct 17, 2023 · 1 comment
Labels
Resolution: Stale Issue or pull request is inactivity and unfortunately it will be *closed* if there is no response Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@SanchitGeez
Copy link

Describe the bug

While using Range Type Calender (v14 prime ng), And setting defautl range date, the default month of the calender on the frontend is the start date and there is no property to set the default date to be end date. If the range is for one year lets say March 2022 to March 2023 the display is March 2022 and no property to set the other. I am sure i am not confusing here .

Environment

Angular: 13.3.11
Node: 18.12.1
Package Manager: npm 8.19.2
OS: win32 x64

Reproducer

No response

Angular version

13.3.11

PrimeNG version

14

Build / Runtime

TypeScript

Language

TypeScript

Node version (for AoT issues node --version)

18.12.1

Browser(s)

All

Steps to reproduce the behavior

                <p-calendar #myCalendar [style]="{'flex-direction':'row','height':'50px','padding':'0.5rem','padding-left':'unset'}"
                    [(ngModel)]="fromDate" selectionMode="range" [showOtherMonths]="false" [maxDate]="date"
                    [numberOfMonths]="graphVisible ? 2 : 1" dateFormat="dd/mm/yy" [readonlyInput]="true"
                    inputId="range" [showButtonBar]="true" [todayButtonStyleClass]="'today-button'"
                    dataType="string" placeholder="ex:01/11/2022-01/12/2022" (onSelect)="filterData()"
                    (onClickOutside)="clickedOutside()">
                </p-calendar>

fromDate: any = [
this.yearPrior,
this.date
]
yearPrior = new Date(new Date().setDate(this.date.getDate() - 365));
date = new Date();

Expected behavior

No response

@SanchitGeez SanchitGeez added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Oct 17, 2023
Copy link

This issue has been automatically marked as stale due to a lack of activity. If this issue is still relevant to you, please leave a comment so we can keep it open. We apologize for not being able to prioritize it sooner. If you have any new information or questions, please share them in your comment!

@github-actions github-actions bot added the Resolution: Stale Issue or pull request is inactivity and unfortunately it will be *closed* if there is no response label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Stale Issue or pull request is inactivity and unfortunately it will be *closed* if there is no response Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

2 participants