Skip to content
This repository was archived by the owner on Mar 4, 2023. It is now read-only.

Commit 6a90600

Browse files
authored
Merge pull request #7 from eksrvb/bufgix/prepare-rework
prepare rework
2 parents 9ddebf2 + 66be4e2 commit 6a90600

22 files changed

+1853
-1841
lines changed

README.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,18 @@
22
Please read this **before** usage!
33
This material calendar is just beginning. As in the angular material components, a beautiful calendar is to be generated by simple integration. Cooperation is welcome.
44

5-
> Note: tthe following changes from version 3.0.0 onwards will no longer be compatible with this api. All necessary changes are documented. Version 3.0.0 is coming soon ;)
5+
> Warning: during the migration to github parts of the project were mixed up !!
6+
All features can be lost after an update from 2.1.2 to> 2.1.2.
7+
This will be solved in version 3.0.0, which will come as soon as I can.
8+
From version 3.0.0 onwards there will be a stable API with extensive features and its own documentation
69

710
### Working demo
811
[demo github project](https://github.com/eksrvb/material-calendar-demo)
912

13+
![material-calendar-single-month](https://github.com/eksrvb/material-calendar/docs/material-calendar-single-month.png)
14+
![material-calendar-three-months](https://github.com/eksrvb/material-calendar/docs/material-calendar-three-months.png)
15+
![material-calendar-two-months-with-placeholder](https://github.com/eksrvb/material-calendar/docs/material-calendar-two-months-with-placeholder.png)
16+
1017
## Installing
1118
`npm i material-calendar`
1219

@@ -57,6 +64,7 @@ All options are shown here:
5764
(clickDate)="yourMethod($event)">
5865
</calendar-panels>
5966
<!--
67+
default mode = monthly
6068
default placeholderDay = false
6169
default year = current year
6270
default month = current month
@@ -67,20 +75,17 @@ All options are shown here:
6775
``` typescript
6876
import { CalendarConfig } from 'material-calendar';
6977

70-
placeholder = false // boolean
71-
mode = 'monthly' // 'annual' | 'monthly'
78+
placeholder = false // boolean ...can be hardcoded in html
79+
mode = 'monthly' // 'annual' | 'monthly' ...can be hardcoded in html
7280

7381
calendarConfig: CalendarConfig = {
7482
panelBgColor: '#00677f', // use only hex or rbg colors
7583
autoTextColor: true,
7684
textColor: '#fff', // use only hex or rbg colors
77-
useHolidays: false,
78-
holidayColor: 'rgb(253, 173, 0)', // use only hex or rbg colors
79-
holidayTextColor: 'rgb(253, 173, 0)', // use only hex or rbg colors
8085
displayYear: true,
8186
firstDayOfWeekMonday: true,
8287
todayColor: '#fff',
83-
panelWidth: '100%',
88+
panelWidth: '100%', // can also be fix values such as 350px
8489
calendarWeek: true,
8590
switches: false,
8691
}
@@ -89,13 +94,10 @@ calendarConfig: CalendarConfig = {
8994
/**
9095
* @param {boolean} autoTextColor Sets the text color automatically, based on the backgroud colors
9196
* @param {boolean} calendarWeek display the calendar week
92-
* @param {boolean} useHolidays use holidays, only german (for now)
9397
* @param {boolean} displayYear displays the year next to the Month name
94-
* @param {boolean} switches not fullt implemented!
98+
* @param {boolean} switches display switches in calendar component or not
9599
* @param {string} panelBgColor sets the background color of the panel
96100
* @param {string} textColor if autoTextColor false this must be set to a custom color
97-
* @param {string} holidayColor sets the background color of the holiday field
98-
* @param {string} holidayTextColor sets the text color of the holiday field
99101
*
100102
*/
101103
```
22.7 KB
Loading
48.5 KB
Loading
41.3 KB
Loading

0 commit comments

Comments
 (0)