Zicrael / ngx-tree-dnd

Angular 7 support, data sortable draggable smart tree.
https://ngx-tree-dnd.stackblitz.io
MIT License
39 stars 11 forks source link

Want to change the html #13

Open Geeta-Singh opened 5 years ago

Geeta-Singh commented 5 years ago

Is it possible to change the html layout accordingly (want to add icons with node name )

Zicrael commented 5 years ago

Hello Geeta-Singh! Thank you for asking, can you describe what icon and where you want to add? just simple icons in node item without actions?

Geeta-Singh commented 5 years ago

Thanks for replying. I want to show user's Display pic (img tag) with profile name as a node

Zicrael commented 5 years ago

Okay , i think i understand, atm i think no way to solve it BUT now i add this feature in next version. Sorry for not providing it so far.

Geeta-Singh commented 5 years ago

OK no problem. Great Library!

Zicrael commented 5 years ago

Thank you, i try make it better. You give me good idea how improve this package. Sorry again.

nicolasdms commented 5 years ago

Could you set up a template html and the possibility of customizing the css directly in the config?

Try to do something like this :

image

Zicrael commented 5 years ago

@nicolasdms , okay I will try to implement it.

nicolasdms commented 5 years ago

I wanted to help you implement this feature so I downloaded the project. I build but when I run "npm run start", I have this error "ERROR in multi ./src/styles.css ./dist/ngx-tree-dnd/styles-tree-dnd.css"

Can you help me please

Zicrael commented 5 years ago

@nicolasdms you need run 'npm install' then 'ng serve' if you want change sometihng in project, you need build lib ( ng build ngx-tree-dnd )

nicolasdms commented 5 years ago

When I run 'npm install' then 'ng server' I have this error : "ERROR in multi ./src/styles.css ./dist/ngx-tree-dnd/styles-tree-dnd.css Module not found: Error: Can't resolve 'D:\Users\nicolasdms\Downloads\ngx-tree-dnd-master (1)\ngx-tree-dnd-master\dist\ngx-tree-dnd\styles-tree-dnd.css' in 'D:\Users\nicolasdms\Downloads\ngx-tree-dnd-master (1)\ngx-tree-dnd-master' i 「wdm」: Failed to compile."

Zicrael commented 5 years ago

@nicolasdms in file angular.json find styles:

styles: [
    'dist/ngx-tree-dnd/styles-tree-dnd.css'
] 

and change this line to

'projects/ngx-tree-dnd/src/lib/styles-tree-dnd.css'
Anzil-Aufait commented 4 years ago

Any update on this ??