task color change question

Support for v6.x of our Scheduling components
Post Reply
User avatar
keyonghee kim
Posts: 12
Joined: Tue Feb 12, 2019 1:39 am

task color change question

Post by keyonghee kim » Thu May 16, 2019 9:54 am

Hello.
I want to change color along the line.
Ask him how to change it.

app.css

Code: Select all

.normalEvent {
    background-color : rgb(3, 180, 213);
    border-color     : rgb(3, 180, 213);
}
.specialEvent {
    background-color : #9cc96b;
    border-color     : #9cc96b;
}
.completeEvent {
    background-color : #ECEC11;
    border-color     : #ECEC11;
}
scheduler.js

Code: Select all

eventRenderer : function(events, resource, meta, row) {
//        meta.cls = 'leaf';
        if (row % 3 == 0) {
        	meta.cls = 'specialEvent';
        } else if(row % 3 == 1){
        	meta.cls = 'normalEvent';
        } else {
        	meta.cls = 'completeEvent';
        }
        return events.get('Title');
    }
Attachments
color.PNG
color.PNG (47.93 KiB) Viewed 14 times

User avatar
keyonghee kim
Posts: 12
Joined: Tue Feb 12, 2019 1:39 am

Re: task color change question

Post by keyonghee kim » Thu May 16, 2019 10:06 am

Based on example Java.
Please refer to

User avatar
mats
Core Developer
Core Developer
Posts: 13837
Joined: Sat Dec 19, 2009 11:41 pm
Location: Sweden
Contact:

Re: task color change question

Post by mats » Thu May 16, 2019 10:36 am

Please use CODE tags when posting code. Can you please describe a bit more what is not working?

This guide shows the basics you need to know: https://bryntum.com/docs/scheduler-for- ... ng_started
Tired of debugging javascript errors in web applications? Try our new error logging service RootCause, or read more on the Sencha blog

@bryntum
Facebook
API documentation

Post Reply