Closed nicknikolov closed 4 years ago
Hi @nicknikolov,
You can animate the toggle (or anything in the parent node cells) just by using CSS, but unfortunately, there's currently no out-of-the-box support for animating row insertion/deletion corresponding to expanding/collapsing nodes.
JSFiddle Demo
, relevant lines:
.cp_tree-table .cp_tree-table_cell .toggle-button:not(:disabled)::after {
/* ... */
transform: translateY(-50%) rotate(0);
/* ... */
transition: transform 0.15s ease;
}
.cp_tree-table .cp_tree-table_cell .toggle-button.expanded:not(:disabled)::after {
transform: translateY(-50%) rotate(90deg);
}
Thanks!
What would be the best strategy to do this in your view? Thanks!