Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jsTree - disable drag option

how can I disable draggable option in jsTree? I want to disable moving nodes. How can I achieve this?

like image 497
niao Avatar asked May 25 '10 19:05

niao


1 Answers

Its Simple.Do not add dnd option in plugins

This includes drag & drop functionality

"plugins": ["themes","html_data","dnd","ui","types"]

This disables drag & drop functionality

"plugins": ["themes","html_data","ui","types"]

like image 153
Satheesh Avatar answered Sep 29 '22 07:09

Satheesh