Page 1 of 1

customize the scheduler display

Posted: Mon Jun 24, 2019 5:40 pm
by melazhadi
Hello,


I would like to know is there that there is an option to change the color on the break between a day and an employee

by default it is the white that appears but I have cases where I need that on a given day and for a given employee I change the color of the background

Re: customize the scheduler display

Posted: Mon Jun 24, 2019 6:44 pm
by mats
Sorry, it's not clear what you mean. Please always provide plenty of context + images.

Re: customize the scheduler display

Posted: Tue Jun 25, 2019 9:36 am
by melazhadi
as we all know timeRange it's a bar for the whole list of employees on one day

for example I want to make a different style on the square that I drew for example so I want to know if there is a feature that allows you to change the style for a cell

Re: customize the scheduler display

Posted: Tue Jun 25, 2019 9:51 am
by mats
Please look at ResourceTimeRanges feature in our docs, example: www.bryntum.com/examples/scheduler/resourcetimeranges

Re: customize the scheduler display

Posted: Tue Jun 25, 2019 10:29 am
by melazhadi
// schedulerConfig.js
resourceTimeRangesFeature: true,
//scheduler.vue
resourceTimeRangesFeature : [Boolean, Object],
//app.vue
<scheduler
			ref="scheduler"
			:resource-time-ranges-feature="schedulerConfig.resourceTimeRangesFeature"
.....
//data.json
{
	"success": true,
	"resourceTimeRanges": {
		"id": 1,
		"resourceId": 120,
		"startDate": "2019-07-01",
		"endDate": "2019-07-04",
		"name": "Lunch"
	},
....

I put this code but I did not have the expected result

Re: customize the scheduler display

Posted: Tue Jun 25, 2019 1:06 pm
by pmiklashevich
What's your scheduler version? Please make sure your trial period is not expired. What example did you change? It's better to provide a zip-archive always to avoid a situation when something is not taken into account.