Skip to content

Add custom template section to the documentation #232

New issue

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

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

Already on GitHub? # to your account

Open
caroso1222 opened this issue Mar 3, 2018 · 1 comment · May be fixed by #250
Open

Add custom template section to the documentation #232

caroso1222 opened this issue Mar 3, 2018 · 1 comment · May be fixed by #250

Comments

@caroso1222
Copy link

Sorry if I'm missing something, I just think we should add a section in the documentation which explains how to set a custom template for the nodes. I had to look in the code to figure out that I had to include the template as a transcluded content inside the tree component:

<tree [tree]="propsTree">
  <ng-template let-node>
    <b>{{node.value}}</b>
  </ng-template>
</tree>

I'm up to the task of opening a PR for this, but I better double check and ask if this is the recommended approach to set custom content for a node.

Cheers!

@rychkog
Copy link
Contributor

rychkog commented Mar 3, 2018

@caroso1222 Good point! Looking forward to your PR.

@caroso1222 caroso1222 linked a pull request Apr 4, 2018 that will close this issue
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants