Skip to content

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

Open
Belisarith wants to merge 2 commits intoguiqui:masterfrom
Belisarith:master
Open

Custom Labels on Bars in dataViewPort, Related to Issue #63 #65
Belisarith wants to merge 2 commits intoguiqui:masterfrom
Belisarith:master

Conversation

@Belisarith
Copy link
Copy Markdown

#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