Git Product home page Git Product logo

Comments (5)

sidyes avatar sidyes commented on August 11, 2024 1

Thanks for your help, I solved it by adding a document event listener that listens to clicks on certain elements within a node.

from org-chart.

bumbeishvili avatar bumbeishvili commented on August 11, 2024

@sidyes nodeIcon was used for different functionality (to display icons inside nodes), theoretically, you can use node icons already inside nodes, it's just you won't be able to attach expand&collapse actions to them.

This is the relevant code piece which is responsible for expand & collapse note icon settings, for now, it's just +, - symbols.
https://github.com/bumbeishvili/d3-organization-chart/blob/master/index.js#L893

I am thinking about changing this functionality in v2 version

from org-chart.

sidyes avatar sidyes commented on August 11, 2024

Ah good to know. Is it somehow possible to inject an Angular component as a template?
I need to implement some additional functionality within a node.

from org-chart.

bumbeishvili avatar bumbeishvili commented on August 11, 2024

Is it somehow possible to inject an Angular component as a template

No, it's not possible

I need to implement some additional functionality within a node.

I think in that case you will need to make changes to the chart itself

Please follow how onNodeClick action is implemented, it may help you
https://github.com/bumbeishvili/d3-organization-chart/blob/master/index.js#L25

from org-chart.

bumbeishvili avatar bumbeishvili commented on August 11, 2024

Great to hear, I was not sure that would work and I did not suggest it

from org-chart.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.