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:
parent
f081718e44
commit
afbe0fcce5
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user