Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Labels on Bars in dataViewPort, Related to Issue #63 #65

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Belisarith
Copy link

#63 (Possible solution)

Added the possibility to add customLabels for the tasks in the moving bar view.
Therefore, the property customLabel can be entered to the data object as follows:

const data = [{ id: 1, start: new Date('.....'), end: new Data('....'), name: "Title Task 1", customLabel: "My Custom Label" }]

If the customLabel property is set and the option
{ dataViewPort: { task: { showLabel: true } } } is activated, then the customLabel string is used. If the option is activated and customLabel is missing, the name is used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant