1

Here i'm trying out with one of the example mentioned in Network- Chaps link library. In this example they are appending images to nodes. Like wise, is there a way to append text input into nodes?

Please suggest a method.

Wahyu Kristianto
  • 8,719
  • 6
  • 43
  • 68
Nayana_Das
  • 1,789
  • 4
  • 23
  • 48
  • It's not clear to me what you mean exactly with "appending text input". Do you mean having an HTML text input field? – Jos de Jong Jun 09 '14 at 08:43
  • Yes that's right, i want to append HTML input field to nodes. – Nayana_Das Jun 09 '14 at 08:57
  • That's not possible, as the Network visualization uses HTML Canvas. – Jos de Jong Jun 09 '14 at 09:00
  • Can you please explain why it can't append an input field, if it can append an image into node? – Nayana_Das Jun 09 '14 at 09:06
  • 1
    Check out some tutorials on what HTML canvas is and how it works. HTML canvas basically gives you an area where you can draw pixels. It supports things like drawing lines, rects, arcs, text, and images. But it is not interactive and you can't put HTML in it. – Jos de Jong Jun 09 '14 at 18:32

1 Answers1

1

It is not possible to use any HTML in the network visualization itself as the visualization uses HTML canvas.

The only thing you could do is provide a title to your nodes. This title is displayed when the user hovers over the node. The title can contain HTML code including input fields.

Jos de Jong
  • 6,602
  • 3
  • 38
  • 58