Skip to content

v1.1.0

Compare
Choose a tag to compare
@abhchand abhchand released this 16 Nov 03:36
· 89 commits to master since this release

Key Notes

The contents option was added, which adds the ability to specify the file contents inline (instead of specifying a url)

Example:

<script>
  const files = [
    {
      path: 'lib/file.js',
      contents: 'const foo = () => {\n  alert('foo');\n}',
      language: 'javascript'
    }
  ];

  new VanillaTreeViewer('some-id', files).render();
</script>

Notes:

  • At least one of url or contents must be specified
  • This option takes precedence over url if both are specified

Changelog

v1.0.1...v1.1.0