Welcome to yEd Q&A!
Here you can ask questions and receive answers from other members of the community and yEd developers. And you can tell us your most wanted feature requests.

Categories

Multi-selection / yfiles HTML

0 votes

I want to add multi selection node with command CTRL+click, How to enable this feature ? 

Can anyone help me, this is the code that i use. Thanks a lot 

<script>

var /** yfiles.input.GraphEditorInputMode */
mode = new yfiles.input.GraphEditorInputMode();
  mode.availableCommands.clear();
mode.availableCommands.add(yfiles.input.GraphCommands.TOGGLE_ITEM_SELECTION_COMMAND);
     mode.availableCommands.add(yfiles.system.ApplicationCommands.SELECT_ALL);
      
    
    mode.createNavigationInputMode();
    mode.navigationInputMode.availableCommands.clear();
    mode.navigationInputMode.availableCommands.add(yfiles.system.ComponentCommands.EXTEND_SELECTION_LEFT);
    mode.navigationInputMode.availableCommands.add(yfiles.system.ComponentCommands.EXTEND_SELECTION_RIGHT);
    mode.navigationInputMode.availableCommands.add(yfiles.system.ComponentCommands.EXTEND_SELECTION_UP);
    mode.navigationInputMode.availableCommands.add(yfiles.system.ComponentCommands.EXTEND_SELECTION_DOWN);
    mode.navigationInputMode.availableCommands.add(yfiles.system.ComponentCommands.SELECT_TO_PAGE_UP);
    mode.navigationInputMode.availableCommands.add(yfiles.system.ComponentCommands.SELECT_TO_PAGE_DOWN);
</script>
 
 

 

closed with the note: Not a yEd question.
in Help by (120 points)
closed by

1 Answer

0 votes

This forum is for yEd questions only. For questions regarding the yFiles for HTML programming library, please contact yWorks support by mail. (Please include your yWorks customer or evaluator ID in your mail when doing so.)

by [yWorks] (160k points)
Legal Disclosure | Privacy Policy
...