You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-3Lines changed: 8 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -265,7 +265,9 @@ Here is an example of its usage:
265
265
{
266
266
value: 'Prototype-based programming',
267
267
settings: {
268
-
'static': true
268
+
'static': true,
269
+
'rightMenu': true,
270
+
'leftMenu': true
269
271
},
270
272
children: [
271
273
{value: 'JavaScript'},
@@ -275,8 +277,11 @@ Here is an example of its usage:
275
277
}
276
278
```
277
279
278
-
Right now only one option is supported - `static`. This option makes it impossible to drag a tree or modify it in a some way, though you still can select nodes in the static tree and appropriate events will be generated.
279
-
`static` option that's defined on a `parent` is automatically applied to its children. If you don't want to make `static` all the children, then you can override `settings` of the child node.
280
+
*`static` - This option makes it impossible to drag a tree or modify it in a some way, though you still can select nodes in the static tree and appropriate events will be generated.
281
+
*`rightMenu` - This option allows you to activate (true, by default) or deactivate (false) right menu when clicking with right button of a mouse.
282
+
*`leftMenu` - This option allows you to activate (true) or deactivate (false, by default) left menu.
283
+
284
+
All options that's defined on a `parent` are automatically applied to children. If you want you can override them by `settings` of the child node.
0 commit comments