Sha256: ff2dcea598477bf8602dd43ad9f6c551a3a00d47c5d528cf390e54c1b68c270c

Contents?: true

Size: 952 Bytes

Versions: 7

Compression:

Stored size: 952 Bytes

Contents

---
title: Javascript tree with autoescape
layout: page
js: examples/autoescape.js
css: example.css
---

<p id="nav">
    <a href="05_load_on_demand.html">&laquo; Example 5</a>    
    <a href="07_autoscroll.html" class="next">Example 7 &raquo;</a>
</p>

<h1>Example 6 - autoEscape</h1>

<p>
    You can put html in the node titles setting the <a href="../index.html#tree-options-autoescape">autoEscape</a> option to <strong>false</strong>.
</p>

<div id="tree1"></div>

<h3>html</h3>

{% highlight html %}
<div id="tree1"></div>
{% endhighlight %}

<h3>javascript</h3>

{% highlight js %}
var data = [
  {
    label: 'examples',
      children: [
        { label: '<a href="example1.html">Example 1</a>' },
        { label: '<a href="example2.html">Example 2</a>' },
        '<a href="example3.html">Example </a>'
      ]
  }
];

// set autoEscape to false
$('#tree1').tree({
  data: data,
  autoEscape: false,
  autoOpen: true
});
{% endhighlight %}

Version data entries

7 entries across 7 versions & 1 rubygems

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