是否可以TreeView
用自定义Node
/形状(而不是图片)替换a的展开和折叠箭头?
-fx-shape
箭头的css属性提供基本的SVG形状。
.tree-cell .tree-disclosure-node .arrow {
-fx-background-color: -fx-mark-color;
-fx-padding: 0.333333em; /* 4 */
-fx-shape: "M 0 -4 L 8 0 L 0 4 z"; // <-- change this default triangle shape
}
.tree-cell:expanded .tree-disclosure-node .arrow {
-fx-rotate: 90; // maybe another svg shape instead
}
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句