---
title: Use icon toggle buttons
layout: page
js: examples/icon_buttons.js
css: example.css
---
« 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
{% highlight js %}
$('#tree1').tree({
closedIcon: $('<i class="fa fa-arrow-circle-right"></i>'),
openedIcon: $('<i class="fa fa-arrow-circle-down"></i>')
});
{% endhighlight %}