This topic contains 4 replies, has 1 voice, and was last updated by  Guenter 6 years ago.

  • Author
    Posts
  • #70984

    Guenter

    Ist it possible tom mark the weekend with a different color in Timeline View ?
    Saturday Sunday = light grey ……

    thx

    Guenter

  • #70985

    admin
    Keymaster

    This is not one of the configuration settings, but we’ve added a place to add custom code such as this.

    Go to your calendar in soSIMPLE Calendar settings and click “Edit” next to where it says “Options”.

    Scroll to the bottom of the Options window – the last Option is “Custom JS”. Paste the following code into Custom JS:

    			scheduler.addMarkedTimespan({ // blocks each Sunday,Saturday
    				days:  [0, 6], 
    				zones: "fullday",
    				type:  "dhx_time_block_not", 
    				css:   "weekend_block" 
    			});
  • #70991

    Guenter

    Thank ou very much Ken ! Works fine !!

    Changing for Color in the CSS ?

  • #70992

    admin
    Keymaster

    Similar process:
    Go to Calendar, click “Edit” next to “Themes”
    Scroll to custom CSS and enter:

    .weekend_block {
    background-color: pink;
    opacity:0.5;
    filter:alpha(opacity=50);
    z-index: 0;
    pointer-events: none;
    }

  • #70993

    Guenter

    fantastic !!!!

You must be logged in to reply to this topic.