If i use calendar(gantt.setWorkTime) in resource_panel, its counting hours by self, or i should do that? Like, set time 4 hours to task
$task = [‘id’=>1, ‘calendar_id’=> 1, ‘owner’=>‘john’];
$calendar = [‘id’=> 1, ‘hours’=> 4]
Hello,
The resource view itself doesn’t calculate the hours. You need to add your code to do that.
In our examples, the hours in the grid are calculated in the resourceConfig variable that is used in the gantt.config.layout property.
The hours in the resource timeline are calculated in the resource_cell_value template: https://docs.dhtmlx.com/gantt/api__gantt_resource_cell_value_template.html