# \[Announce\] Dashboard version 2.10.0

**URL:** <https://discourse.nodered.org/t/announce-dashboard-version-2-10-0/4196>\
**Category:** Dashboard\
**Created:** [22 October 2018 18:58 UTC](https://discourse.nodered.org/t/announce-dashboard-version-2-10-0/4196 "2018-10-22T18:58:39Z")\
**Posts on this page:** 1\
**Showing post:** 22

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [5 November 2018 22:16 UTC](https://discourse.nodered.org/t/announce-dashboard-version-2-10-0/4196/22 "2018-11-05T22:16:33Z")

</div>

Hi,

I'm trying to develop my first UI contribution, but not sure how to continue further...

I need to generate something like this:

```auto
<!DOCTYPE html>
<html>
  <body>
    <video style="border: solid 1px;"></video>
    <script>
      ...
      var mediaSource = new MediaSource(); 
      var video = document.querySelector('video');
      video.src = URL.createObjectURL(mediaSource);
      ...
    </script>
  </body>
</html>

```

The `<video>` tag should be generated with the HTML function:

```auto
function HTML(config) {
        var html = String.raw`
<video style="border: solid 1px;"></video>
`;
        return html;
};

```

Questions:

1. But where do I have to generate the **Javascript code** : do I also have to generate a `<script>` tag in this HTML function, or should I add a initController callback function, or others?
2. @TotallyInformation advised me in this [discussion](https://discourse.nodered.org/t/announce-visual-programming-a-function-node-with-blockly-feedback-request/1566/146?u=bartbutenaers) not to use template literals. Isn't this a problem here, since Node-RED currently still supports older NodeJs versions?
3. In the examples of the new API, the html text is always left aligned. Is this (for some reason) advised or mandatory, or is it allowed to have indentations (to make the .js file more readable)?

Thanks !!  
Bart

---

_[View the full topic](https://discourse.nodered.org/t/announce-dashboard-version-2-10-0/4196)._
