Our pure JavaScript Scheduler component


Post by yamik »

Hi,
I am trying to grey out weekends in vertical mode. I have effect only on header. Solution from other topic doesn't work for vertical mode:

css:

.b-grid-headers .b-sch-nonworkingtime {
  background-color: rgba(152, 70, 70, 0.15);
}

.b-grid-subgrid .b-sch-range {
  background: repeating-linear-gradient(-45deg, rgba(188, 96, 96, 0.05), rgba(188, 96, 96, 0.05) 10px, rgba(152, 70, 70, 0.15) 10px, rgba(152, 70, 70, 0.15) 20px);
}

ts:

      features : {
          sort        : 'name',
          eventResize : {
              showExactResizePosition : true
          },
          nonWorkingTime : true,

      scheduleTooltip : {
          // Hide schedule tooltip when hovering non-working days
          hideForNonWorkingTime : true
      }
  },

Post by tasnim »

Hi,
Sorry, for the delay, Use this selector

.b-sch-timerange.b-sch-nonworkingtime {
    background: repeating-linear-gradient(-45deg, rgba(188, 96, 96, 0.05), rgba(188, 96, 96, 0.05) 10px, rgba(152, 70, 70, 0.15) 10px, rgba(152, 70, 70, 0.15) 20px);
}

instead of .b-grid-subgrid .b-sch-range


Post by yamik »

Thx but still no effect on the calendar.


Post by tasnim »

Could you please provide a runnable test case so we can debug it?


Post by yamik »

Will be hard to do. It's not a small program. Maybe login and pass to application will be enough? You can see there calendar and css on inspect mode. Or maybe some other idea for vertical mode?

Version:
"@bryntum/scheduler": "5.0.1",
"@bryntum/scheduler-angular": "5.0.1",


Post by tasnim »

I tried the CSS in our vertical example here https://bryntum.com/examples/scheduler/vertical/

And it looks like

Screenshot 2022-09-02 162200.png
Screenshot 2022-09-02 162200.png (122.38 KiB) Viewed 512 times

Isn't it what you are looking for?


Post by yamik »

Yes, exactly like that.
What you put on ts and css files?


Post by tasnim »

I've used this only css, which I already provided above.

.b-sch-timerange.b-sch-nonworkingtime {
    background: repeating-linear-gradient(-45deg, rgba(188, 96, 96, 0.05), rgba(188, 96, 96, 0.05) 10px, rgba(152, 70, 70, 0.15) 10px, rgba(152, 70, 70, 0.15) 20px);
}

Post by yamik »

I made a test and the feature not working for me.
What I should use for angular: nonWorkingTime or nonWorkingTimeFeature? I was trying both but I have no new class in tags after set it to true in features section.
When I check the demo there is shown 40 more new class nonWorkingTime on calendar tags.
On my application I have none of nonWorkingTime class after set it to true.


Post by yamik »

I found the solution right now... :)
It should be set in html tag:

<bryntum-scheduler
    #kalendarz
    [nonWorkingTimeFeature] = "true"
...
    ></bryntum-scheduler>

Post Reply