Skip to Main Content

Collapse tree on startup

MrE-OracleAug 5 2021

I'd like to start with my tree collapse at the root. Looking at the API, it seems like I should initialize with:
$( ".selector" ).treeView( "collapseAll" );
but where does this code run?
If I set this in the treeview Javascript Initialization area:
image.png
I get:
image.pngif i set it on the page itself, it doesn't work because the tree is lazy loaded.
So where is it supposed to go? How is it supposed to work?

Comments
Post Details
Added on Aug 5 2021
1 comment
29 views