Create a brixxbox TextBox myOutput for the Value of the Slider
Copy the code below as a Control in your App Config. Make adjustments to the onSubDataRequest event for your specific usecase and render the control with app.refresh("myTree") at any point.
Take a look at https://www.jstree.com/ for further configuration details and options.