-
Notifications
You must be signed in to change notification settings - Fork 162
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
Include igTree from jQuery to Ignite UI for Angular #7475
Comments
@pranaysharmadelhi have you tried our angular wrappers for Ignite UI for jQuery? |
Ya, they are causing the Grid Modules to fail. They are not compatible. |
@pranaysharmadelhi can you attach a sample or link to a StackBlitz demo, where we can investigate the problem you are experiencing? |
So, when I click JSFiddle on https://www.igniteui.com/tree/angular , it doesn't work |
There has been no recent activity and this issue has been marked inactive. |
There has been no recent activity and this issue has been marked inactive. |
There has been no recent activity and this issue has been marked inactive. |
@pranaysharmadelhi , Thanks for bringing this to our attention! We've started developing an You can also track the progress of the implementation in this issue. |
IgxTree Implementation
|
Since we're going w/ a declarative approach, we will have some limitations regarding the tree. There is a known issue in Angular for using
<!-- this is not supported and will lead to incorrect behavior -->
<igx-tree>
<ng-container *ngFor="let node of data">
<ng-template ngProjectAs="igx-tree-node" *ngTemplateOutlet="recursiveNodeTemplate; context: { $implicit: node }">
</ng-template>
</ng-container>
<ng-template #recursiveNodeTemplate let-node>
<igx-tree-node [data]="node">
{{node.label}}
<ng-container *ngFor="let entry of node.children">
<ng-template ngProjectAs="igx-tree-node" *ngTemplateOutlet="recursiveNodeTemplate; context: { $implicit: entry}">
</ng-template>
</ng-container>
</igx-tree-node>
</ng-template>
</igx-tree> Currently, all levels of the hierarchy must be written explicitly.
<igx-tree>
<igx-tree-node #nodeRef *ngFor="let node of data" [data]="node">
<!-- template outlet in node content -->
<ng-template *ngTemplateOutlet="nodeTemplate; context: { $implicit: node, node: nodeRef }">
</ng-template>
<igx-tree-node #nodeRef *ngFor="let childNode of node.children" [data]="childNode">
<!-- template outlet in node content -->
<ng-template *ngTemplateOutlet="nodeTemplate; context: { $implicit: childNode, node: nodeRef }">
</ng-template>
....
</igx-tree-node>
</igx-tree-node>
<!-- template is defined in the tree body -->
<ng-template #nodeTemplate let-data let-parent="nodeRef">
<!-- explicitly pass a reference to the parent node via `[igxTreeNodeLink]="parent"` -->
<a [igxTreeNodeLink]="parent" [href]="data.href">{{ data.label }}</a>
</ng-template>
</igx-tree> The |
Is your feature request related to a problem? Please describe.
Include igTree from jQuery to Ignite UI for Angular for easy inclusion
Describe the solution you'd like
Ability to add IgxTreeModule similar to IgxGridModule
Describe alternatives you've considered
Tried including IgTreeComponent, but that causes failures with other Modules
Additional context
The text was updated successfully, but these errors were encountered: