add tooltip for items
This commit is contained in:
parent
e577298d78
commit
5e88cd90f5
|
@ -432,6 +432,7 @@ class D4SStorageTree extends D4SStorageHtmlElement {
|
||||||
li.setAttribute(D4SStorageTree.dataname_attr, label);
|
li.setAttribute(D4SStorageTree.dataname_attr, label);
|
||||||
li.setAttribute(D4SStorageTree.dataid_attr, id);
|
li.setAttribute(D4SStorageTree.dataid_attr, id);
|
||||||
li.style.userSelect = "none"
|
li.style.userSelect = "none"
|
||||||
|
li.title = li.alt = label
|
||||||
if (parentId) {
|
if (parentId) {
|
||||||
li.setAttribute(D4SStorageTree.parentid_attr, parentId);
|
li.setAttribute(D4SStorageTree.parentid_attr, parentId);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue