Calendar with week numbers

Request for a new feature or component
Post Reply
sprogs
Posts: 6
Joined: Fri Nov 30, 2018 1:33 pm
Status: Offline

Calendar with week numbers

Post by sprogs » Tue Dec 04, 2018 8:12 am

Hi,

It would be nice to have the option to display the numbers of the week, I have a code creating such a calendar, so I can send it as I need.
I did it under my own library but for now I gave up and I want to use Metro 4.

User avatar
olton
Site Admin
Posts: 232
Joined: Mon Apr 09, 2018 6:19 pm
Location: Kiev, Ukraine
Status: Offline

Post by olton » Tue Dec 04, 2018 8:33 pm


sprogs
Posts: 6
Joined: Fri Nov 30, 2018 1:33 pm
Status: Offline

Post by sprogs » Tue Dec 04, 2018 10:12 pm

great:)

sprogs
Posts: 6
Joined: Fri Nov 30, 2018 1:33 pm
Status: Offline

Post by sprogs » Sat Jan 26, 2019 2:40 pm

Hi,

It works very well but I have a question:
how to force DatePicker to display weeks?

In the case of Calendar it works but as you can see in the second line for DatePicker this option does not work

Code: Select all

    
    <div data-role="calendar" data-show-header="false" data-show-footer="false" data-show-week-number="true" class="compact"></div>
    <input type="text" data-role="calendarpicker"  data-show-header="false" data-show-footer="false" data-show-week-number="true" class="compact">

User avatar
olton
Site Admin
Posts: 232
Joined: Mon Apr 09, 2018 6:19 pm
Location: Kiev, Ukraine
Status: Offline

Post by olton » Sat Jan 26, 2019 4:58 pm

Currently not available for calendarpicker

sprogs
Posts: 6
Joined: Fri Nov 30, 2018 1:33 pm
Status: Offline

Post by sprogs » Sun Jan 27, 2019 9:49 pm

No problem, I can deal with it differently.
By the way I am enclosing a Polish translation, it would be good to have them in a project instead of including them separately:

Code: Select all

"pl-PL": {
        "calendar": {
            "months": [
                "Styczeń", "Luty", "Marzec", "Kwiecień", "Maj", "Czerwiec", "Lipiec", "Sierpień", "Wrzesień", "Październik", "Listopad", "Grudzień",
                "Sty", "Lut", "Mar", "Kie", "Maj", "Cze", "Lip", "Sie", "Wrz", "Paź", "Lis", "Gru"
            ],
            "days": [
                "Niedziela", "Poniedziałek", "Wtorek", "Środa", "Czwartek", "Piątek", "Sobota",
                "N", "Po", "Wt", "Śr", "Cz", "Pt", "S",
                "Nie", "Pon", "Wto", "Śro", "Czw", "Pią", "Sob"
            ],
            "time": {
                "days": "DNI",
                "hours": "GODZINY",
                "minutes": "MINUTY",
                "seconds": "SEKUNDY",
                "month": "MIESIĄC",
                "day": "DZIEŃ",
                "year": "ROK"
            }
        },
        "buttons": {
            "ok": "OK",
            "cancel": "Anuluj",
            "done": "Gotowe",
            "today": "Dziś",
            "now": "Teraz",
            "clear": "Wyczyść",
            "help": "Pomoc",
            "yes": "Tak",
            "no": "Nie",
            "random": "Losowo",
            "save": "Zapisz",
            "reset": "Zeruj"
        }
    }

Post Reply