« Example 9 Example 11 »

Example 10 - use icon toggle buttons

You can use the openedIcon and closedIcon options to use html for the toggle buttons. You can for example use Fontawesome icons.

javascript

$('#tree1').tree({
    closedIcon: $('<i class="fas fa-arrow-circle-right"></i>'),
    openedIcon: $('<i class="fas fa-arrow-circle-down"></i>')
});