File tree 3 files changed +9
-1
lines changed
angular-calendar/src/modules/week
3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ import { PlacementArray } from 'positioning';
30
30
<div
31
31
class="cal-event"
32
32
[ngStyle]="{
33
+ color: weekEvent.event.color?.secondaryText,
33
34
backgroundColor: weekEvent.event.color?.secondary,
34
35
borderColor: weekEvent.event.color?.primary
35
36
}"
Original file line number Diff line number Diff line change 48
48
[disablePopover] ="!weekEvent.event.meta.groupedEvents "
49
49
class ="cal-event "
50
50
[ngStyle] ="{
51
+ color: weekEvent.event.color?.secondaryText,
51
52
backgroundColor: weekEvent.event.color?.secondary,
52
53
borderColor: weekEvent.event.color?.primary
53
54
} "
Original file line number Diff line number Diff line change 108
108
< tr >
109
109
< th > Title</ th >
110
110
< th > Primary color</ th >
111
- < th > Secondary color</ th >
111
+ < th > Secondary + text color</ th >
112
112
< th > Starts at</ th >
113
113
< th > Ends at</ th >
114
114
< th > Remove</ th >
@@ -138,6 +138,12 @@ <h3>
138
138
[(ngModel)] ="event.color.secondary "
139
139
(change) ="refresh.next() "
140
140
/>
141
+ < input
142
+ type ="color "
143
+ [ngModel] ="event.color.secondaryText ?? '#1e90ff' "
144
+ (ngModelChange) ="event.color.secondaryText = $event "
145
+ (change) ="refresh.next() "
146
+ />
141
147
</ td >
142
148
< td >
143
149
< input
You can’t perform that action at this time.
0 commit comments