search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Hide complete percentage label

Related article: Angular 5 Gantt Chart Quick Start Project
Asked by Rafael Hidalgo
11 months ago.

There is any way to hide complete percentage label in a Task element or, at least, remove '%' character?

Answer posted by Dan Letecky [DayPilot]
11 months ago.

You can customize the task text/HTML using onBeforeTaskRender:

config: any = {
  onBeforeTaskRender: args => {
    args.data.box.html = args.data.text;   // displays task text instead of percentage in the box
  }
}

See also:
https://doc.daypilot.org/gantt/task-customization/

This question is more than 3 months old and has been closed. Please create a new question if you have anything to add.