jQWidgets Forums
jQuery UI Widgets › Forums › Scheduler › WeekEnds and Special Days
This topic contains 2 replies, has 2 voices, and was last updated by Wmekky 5 years, 4 months ago.
-
Author
-
Hi there,
I am very satisfied using your wonderful Scheduler.
Where, need to know or be guided of how to give special effect, background color or any
for some dates away from my loaded appointments such as (Weekends/Holidays).Consider:
– Friday and Saturday as a days off.
– Thursday (upper) as a Special Holiday (like Christmas).
– Thursday (lower) as a normal appointment (like Parents Meeting).
———————————————————-
Thursday | Friday | Saturday
———————————————————-
Back Ground Color | Back Ground Color | Back Ground Color
Special Holiday | As Day off | As Day off
in Red | in Yellow | in Yellow
———————————————————-
| Back Ground Color |Back Ground Color
Normal appointments | As Day off | As Day off
| in Yellow | in Yellow
———————————————————-
* My loaded array -Array(X)- will contain only one object/record/element with “Parents Meeting”.
σ Was thinking to have a localization array -Array(Y)- with my day off like [5,6].
σ Was thinking to have a localization array -Array(Z)- with my holidays like [start1,start2,start3…].
* Don’t want to touch my original Array(X).
* Don’t want to push days off and holidays as appointments.
Hope my case is clear enough to have some clue on.
Regards.Hello Wmekky,
For the style settings as a changing the background color and etc, you could use the internal classes of the jqxScheduler.
All available and permitted classes you could find on this page:
https://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxscheduler/jquery-scheduler-styling-and-appearance.htm
About the customization of the appointments, I would like to suggest you look at this demo.
Please, take a look at this one, too.
About the special dates, I would like to suggest you look at one more example.
I look forward to hearing from you, for more details for not cleared points and if you have any other questions.Best Regards,
Hristo HristovjQWidgets team
https://www.jqwidgets.comHi Hristo,
Thank you for your rich response.
I think I was’t clear enough but anyway it helped me a lot.
For those people who might come across this post :
I have solved by playing around as
workTime: {
fromDayOfWeek:day_from,
toDayOfWeek:day_to,
fromHour: work_from,
toHour: work_to
},
in different view properties.
As my weekends are [5,6]I set day_from=0 and day_to=4 where in scheduler property firstDay: 6
That hide totally the weekend days and avoid me handle more unnecessary array elements.
I only handle events days within the core array.Regards,
-
AuthorPosts
You must be logged in to reply to this topic.