-
Notifications
You must be signed in to change notification settings - Fork 160
IgxTree Implementation #8945
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
IgxTree Implementation #8945
Conversation
@ViktorSlavov Although it's a little bit late for test-driven, my suggestion is to catch up on unit tests now and to implement the rest with a test-driven approach! |
d22e523
to
409b3e2
Compare
6bbe579
to
b7106b9
Compare
2afd38f
to
de7b239
Compare
* const children: IgxTreeNode<any>[] = node.children; | ||
* ``` | ||
*/ | ||
public get _children(): IgxTreeNode<any>[] { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the public getter be with _
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be change once all functionality is implemented - we'll remove the _
and swap this w/ the current children: QueryList<IgxTreeNode<any>>
property. I've left a TODO
comment above the API docs for this one.
There's currently a children: QueryList<IgxTreeNode>
property, which is /** @hidden @internal */
and is used in the logic for selection and navigation.
* ``` | ||
*/ | ||
@Input() | ||
public get expanded() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also you need expandedChange
for [(expanded)]
binding.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My mistake, I've added that
* ``` | ||
*/ | ||
@Input() | ||
public get selected(): boolean { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also you need selectedChange
for [(selected)]
binding.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One was implemented w/ the selection service, it's at the start of the class definition (to avoid making lint angry)
projects/igniteui-angular/src/lib/expansion-panel/toggle-animation-component.spec.ts
Outdated
Show resolved
Hide resolved
projects/igniteui-angular/src/lib/expansion-panel/toggle-animation-component.ts
Show resolved
Hide resolved
} | ||
|
||
// Enums | ||
export const IGX_TREE_SELECTION_TYPE = mkenum({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make this pascal-case please
Closes #7475
Closes #9092
IgxTree Implementation
Spec
IgxExpansionPanel
class to reuse of animation codeIgxExpansionPanel
)igxTreeNodeLink
directive + rolesAdditional information (check all that apply):
Checklist:
feature/README.MD
updates for the feature docsREADME.MD
CHANGELOG.MD
updates for newly added functionalityng update
migrations for the breaking changes (migrations guidelines)