Skip to content

Commit 74a89a0

Browse files
committed
[update] updateTask article
Modernize code examples and normalize formatting
1 parent 3b9f9a3 commit 74a89a0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/api/method/updatetask.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ If you're using the [DataProcessor](api/method/dataprocessor.md), invoking this
5050

5151
For making visual changes that don't require saving, **use the [`refreshTask()`](api/method/refreshtask.md) method instead**. This will repaint the task without invoking extra calculations.
5252

53-
~~~js
53+
~~~js {5}
5454
gantt.templates.task_class = (startDate, endDate, task) => task.$active ? "active_task" : "";
5555

5656
gantt.attachEvent("onTaskClick", (taskId, event) => {

0 commit comments

Comments
 (0)