Skip to content

Commit

Permalink
browser: treeview: add regular cell text
Browse files Browse the repository at this point in the history
Change-Id: I38e2a164dcdbb5c1f48fd24c11a28858839c981d
Signed-off-by: Henry Castro <[email protected]>
  • Loading branch information
hcvcastro committed Jul 23, 2024
1 parent 66cfc80 commit 13c31be
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions browser/src/control/jsdialog/Widget.TreeView.js
Original file line number Diff line number Diff line change
Expand Up @@ -1033,8 +1033,11 @@ class TreeViewControl {
link = L.DomUtil.create('a', '', innerText);
link.href = entry.columns[index].link || entry.columns[index].text;
link.innerText = entry.columns[index].text || entry.text;
} else
text.innerText = entry.columns[index].text;
} else if (entry.columns[index].text && !this.isSeparator(entry.columns[index])) {
innerText = L.DomUtil.create('span', builder.options.cssClass + ' ui-treeview-cell-text',
text);
innerText.innerText = entry.columns[index].text || entry.text;
}

td.setAttribute('role', 'gridcell');
}
Expand Down

0 comments on commit 13c31be

Please sign in to comment.