How to disable the modification of text in the vertex? I want a fixed text.

Thanks all.

asked 17 May '12, 08:35

Jordana's gravatar image

accept rate: 0%

Try editable=0


answered 18 May '12, 02:54

Gaudenz's gravatar image

accept rate: 39%

Gaudenz, thanks for the reply. But went wrong because an object of type mxGraphComponent not have this method ...

(21 May '12, 06:42) Jordana

This is not a method, this is a style. The method is called mxGraph.setCellsEditable(false). The latter will disable all editing.

(21 May '12, 06:43) Gaudenz

Again thanks for the answer, this solved my question. The vertex is now the name is not editable.

(21 May '12, 06:50) Jordana
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 17 May '12, 08:35

Seen: 1,469 times

Last updated: 21 May '12, 07:15