mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
Add highlighting attribute into widget tree
This commit is contained in:
parent
11b2918d47
commit
476606d6cb
@ -108,6 +108,12 @@ var et2_tree = et2_inputWidget.extend(
|
||||
"default": false,
|
||||
"description": "Allow marking multiple nodes, default is false which means disabled multiselection, true or 'strict' activates it and 'strict' makes it strick to only same level marking"
|
||||
},
|
||||
highlighting:{
|
||||
"name": "highlighting",
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"description": "Add highlighting class on hovered over item, highlighting is disabled by default"
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
@ -229,6 +235,8 @@ var et2_tree = et2_inputWidget.extend(
|
||||
{
|
||||
widget.input.enableMultiselection(!!widget.options.multimarking, widget.options.multimarking === 'strict');
|
||||
}
|
||||
// Enable/Disable highlighting
|
||||
widget.input.enableHighlighting(widget.options.highlighting?true:false);
|
||||
},
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user