GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing maxgraph.github.io — CellEditorHandler | @maxgraph/core
Class CellEditorHandlerIn-place editor for the graph. To control this editor, use:
If AbstractGraph.enterStopsCellEditing is The F2 (accept change) and escape keys (undo change) can always be used to stop editing. To customize the location of the textbox in the graph, override getEditorBounds as follows:
Note that this hook is only called if autoSize is The textarea uses the Example: To only allow numeric input in the in-place editor, use the following code.
PlaceholderTo implement a placeholder for cells without a label, use the emptyLabelText variable. Resize the textareaResize of the textarea is disabled by default.
If you want to enable this feature extend init and set Editing on key pressTo start editing on a key press event, the container of the graph should have focus or a focusable parent should be used to add the key press handler as follows.
To allow focus for a DIV, and hence to receive key press events, some browsers require it to have a valid tabindex attribute. In this case the following code may be used to keep the container focused.
Implements
|
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |