Sha256: 5708a004aa9aba8e60b0734594fd465566e4a77ec0355b59a99ae18e1df14c04

Contents?: true

Size: 735 Bytes

Versions: 7

Compression:

Stored size: 735 Bytes

Contents

---
title: Use icon toggle buttons
layout: page
js: examples/icon_buttons.js
css: example.css
---

<p id="nav">
    <a href="custom_html.html">&laquo; Example 9</a>
</p>

<h1>Example 10 - use icon toggle buttons</h1>

<p>
    You can use the <strong>openedIcon</strong> and <strong>closedIcon</strong> options to use html for
    the toggle buttons. You can for example use <a href="http://fortawesome.github.io/Font-Awesome/">Fontawesome icons</a>.
</p>
<div id="tree1" data-url="/example_data/"></div>

<h3>javascript</h3>

{% highlight js %}
$('#tree1').tree({
    closedIcon: $('&lt;i class="fa fa-arrow-circle-right"&gt;&lt;/i&gt;'),
    openedIcon: $('&lt;i class="fa fa-arrow-circle-down"&gt;&lt;/i&gt;')
});
{% endhighlight %}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
iqvoc-4.12.1 vendor/assets/bower_components/jqtree/_examples/10_icon_buttons.html
iqvoc-4.12.0 vendor/assets/bower_components/jqtree/_examples/10_icon_buttons.html
iqvoc-4.11.1 vendor/assets/bower_components/jqtree/_examples/10_icon_buttons.html
iqvoc-4.11.0 vendor/assets/bower_components/jqtree/_examples/10_icon_buttons.html
iqvoc-4.10.0 vendor/assets/bower_components/jqtree/_examples/10_icon_buttons.html
iqvoc-4.9.0 vendor/assets/bower_components/jqtree/_examples/10_icon_buttons.html
iqvoc-4.8.2 vendor/assets/bower_components/jqtree/_examples/10_icon_buttons.html