Skip to content

Make week numbers available #590

Description

@Jopie01

In al lot of cases a week number shown in front of the week can be very handy because many things like vacations are referring to week numbers instead of actual dates.

Currently showing the week number requires a custom component and some logic in that component to get the week numbers. For example I have overwritten the function https://github.com/cibernox/ember-power-calendar/blob/562d48b0e7399a596e54ee382a23f1e477cfb612/ember-power-calendar/src/components/power-calendar/days.ts#L129 and extended a bit so the week number is also in de object.

I also had to copy over https://github.com/cibernox/ember-power-calendar/blob/562d48b0e7399a596e54ee382a23f1e477cfb612/ember-power-calendar/src/-private/days-utils.ts#L62-L81 otherwise it didn't work.

Would is be possible to add the week numbers into the object and add an option to show these?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions