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

have vFormatChangeEvent API? #341

Open
qhy90223 opened this issue Mar 9, 2021 · 4 comments
Open

have vFormatChangeEvent API? #341

qhy90223 opened this issue Mar 9, 2021 · 4 comments

Comments

@qhy90223
Copy link

qhy90223 commented Mar 9, 2021

i want change some params when the vForamt change,but i don't find the API

@qhy90223
Copy link
Author

qhy90223 commented Mar 9, 2021

i want change some params when the vForamt change,but i don't find the API

in src/draw.js file 209 line , newNode(vTmpRow, 'td', null, 'gtaskname', '\u00A0');
i want to change '\u00A0' in gantt header text ,but i don't know how to do this,

@mariohmol
Copy link
Collaborator

what u want to put instead?
just to understand your needs.. if u could make a screenshot as well.. would be great

@donriga
Copy link

donriga commented Jun 30, 2022

Is there a separate event for changing the display format (vEvents change month day etc)?

@ValentinGrigoras
Copy link

Hi, is there a way of changing the current format and also set the available vFormatArr at runtime?
For me none of the following solutions works:
//initialization
this.editorOptions = new GanttEditorOptions();
@ViewChild(GanttEditorComponent) editor: GanttEditorComponent;

this.editor.setOptions({ vFormat: 'day'}); //change current format to day
this.editor.options["vFormat"] = 'day'; //change current format to day


this.editorOptions.vFormatArr = ['day']; // set only available format to day
this.editor.setOptions(this.editorOptions);

this.editor.setOptions({ vFormatArr: ['day']); // set only available format to day

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

No branches or pull requests

4 participants