daffodil icon indicating copy to clipboard operation
daffodil copied to clipboard

[FEAT] Add selected functionality for tree component

Open xelaint opened this issue 1 year ago • 3 comments

:bulb: Feature request

Feature Name

Add selected UI for tree component

The Desired Behavior

A [daff-tree-item] that is active/selected should have a selected class added to it to properly style it.

Your Use Case

As a designer, I would like to indicate to users if a tree item in a tree is currently selected/active.

Prior Work

Environment


Daffodil version: X.Y.Z
Angular version: X.Y.Z 

 
For Tooling issues:
- Node version: XX  
- Platform:  

Others:

xelaint avatar Jun 13 '24 16:06 xelaint

use routerLinkActive

griest024 avatar Jun 13 '24 16:06 griest024

use routerLinkActive

@griest024 The styles for selected is in the code, but I'm not sure how I can use the routerLinkActive directive in DaffTreeItemDirective so that a selected tree item has the routerLinkActive directive set on it as well.

xelaint avatar Jun 20 '24 21:06 xelaint

You can assign this to me

griest024 avatar Jun 20 '24 23:06 griest024