New to Kendo UI for Angular? Start a free 30-day trial
TaskClassFn
Represents the callback that is used by the taskClass property.
public taskCallback(dataItem: any): any {
const moreThanHalfCompleted = dataItem.completionRatio > 0.5;
return {
'more-than-half': moreThanHalfCompleted,
'less-than-half': !moreThanHalfCompleted
};
}