5
0
mirror of git://git.proxmox.com/git/pve-docs.git synced 2025-03-20 22:50:06 +03:00

api-viewer: tree-tools: use modern callback and add tooltips

The 'handler' config is deprecated since ExtJS 4.2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2019-12-11 15:45:51 +01:00
parent f081718e44
commit afbe0fcce5

View File

@ -416,15 +416,15 @@ Ext.onReady(function() {
tools: [
{
type: 'expand',
handler: function() {
tree.expandAll();
},
tooltip: 'Expand all',
tooltipType: 'title',
callback: (tree) => tree.expandAll(),
},
{
type: 'collapse',
handler: function() {
tree.collapseAll();
}
tooltip: 'Collapse all',
tooltipType: 'title',
callback: (tree) => tree.collapseAll(),
},
],
store: store,