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

Timeline options template: provide angular template #400

Open
fijackokresimir opened this issue May 7, 2020 · 3 comments
Open

Timeline options template: provide angular template #400

fijackokresimir opened this issue May 7, 2020 · 3 comments

Comments

@fijackokresimir
Copy link

Is there a way to pass angular template for template property in Timeline Options?
Like in documentation:
https://visjs.github.io/vis-timeline/docs/timeline/#Templates

@YahyaRechaki
Copy link

same question.
@fijackokresimir did you find anything about this ?

@kresimirfijacko
Copy link

kresimirfijacko commented Apr 22, 2024

same question. @fijackokresimir did you find anything about this ?
@YahyaRechaki
i stopped working on that project 4 years ago, i have no idea if something happened in the meantime

@YahyaRechaki
Copy link

for this purpose, there is a work around that you can implement is to create the template yourself, meaning you prepare the HTML code yourself (the squelette, div, span, p...) manage data management, if conditions, ngFor... (if applicable) in the ts file, and then you can apply style using the :host ::ng-deep directly to your added template. you can target your template by checking it's parent that is added to, for the visjs timeline item : the content is added under the div with class name vis-item-content.

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

No branches or pull requests

3 participants