v2.1.0
Breaking Changes
Old (2.0.0
)
Previously, you neeed to call VanillaTreeViewer.renderAll()
manually, after the DOM Content loaded:
<script>
document.addEventListener('DOMContentLoaded', function() {
VanillaTreeViewer.renderAll();
}, false);
</script>
New (2.1.0
)
To make this simpler going forward,
-
renderAll()
will correctly handle delaying itself till DOM content has loaded. You no longer need to worry about wrapping it indocument.addEventListener
. -
Additionally, we now recommend calling
renderAll()
on script load (withonload
) so it doesn't have to be called separately as a one-off statement.
Example:
<!-- Note the `onload` call within the `<script>` tag. -->
<script
type="text/javascript"
onload="VanillaTreeViewer.renderAll()"
src="..."
</script>
Other Changes
- Add "Wrap Text" Toggle 84d8ac8