简体   繁体   中英

JavaFx: TreeTableView arrow reference

How can I get a reference to the expand/collapse "arrow" in a TreeTableView?

I cannot provide any code, since, I didn't really know what to look for.

Here is an image that shows what I need. The highlighted arrows are which I need.

I want to remove it, while keeping the collapse/expand mechanism(which works also if I click on the row itself), or making it transparent via css.

在此处输入图片说明

Set the background of the arrow to transparent via CSS stylesheet. The CSS below contains code for both TreeTableView and TreeView , since you write about TreeTableView but your screenshot shows a TreeView :

.tree-cell .arrow,
.tree-table-row-cell .arrow {
    -fx-background-color: transparent;
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM