Skip to content

Commit

Permalink
Merge pull request #3 from bb140856/feature/week-view
Browse files Browse the repository at this point in the history
Week view added
  • Loading branch information
bb140856 authored Jul 4, 2023
2 parents 7878334 + 1e80170 commit 2a1d0a1
Show file tree
Hide file tree
Showing 17 changed files with 1,637 additions and 409 deletions.
16 changes: 16 additions & 0 deletions config/nova-calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,22 @@
*/
'windowTitle' => 'Nova Calendar',

/*
* Define if week numbers should be displayed on the Month view.
This key is optional.
If you remove it or set, week numbers will be displayed on the Month view by default.
*/
'shouldShowWeekNumbers' => true,

/*
* Define what calendar views should be rendered and visible to the end user.
Array order determines sequence of views selector on frontend.
This key is optional. if not set, all NovaCalendar views will be rendered.
*/
'calendarViews' => [
'month',
'week'
]
],

// 'calendar2' => [
Expand Down
2 changes: 1 addition & 1 deletion dist/css/tool.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/js/tool.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/customizing-the-calendar.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ You can add tooltips to calendar day badges to show more details to the user.
Simply supply a second string argument to the `addBadge` method:

```php
protected function customizeCalendarDay(CalendarDay $day) : CalendarDay
public function customizeCalendarDay(CalendarDay $day) : CalendarDay
{
if($day->start->format('d') % 2 == 0)
{
Expand Down
Loading

0 comments on commit 2a1d0a1

Please sign in to comment.