# Can I generate a custom node using code inside ui\_template

**URL:** <https://discourse.nodered.org/t/can-i-generate-a-custom-node-using-code-inside-ui-template/24528>\
**Category:** Dashboard\
**Created:** [9 April 2020 14:26 UTC](https://discourse.nodered.org/t/can-i-generate-a-custom-node-using-code-inside-ui-template/24528 "2020-04-09T14:26:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![josekavunkal](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/josekavunkal/32/18505_2.png) [@josekavunkal](https://discourse.nodered.org/u/josekavunkal)\
**Post date:** [9 April 2020 14:26 UTC](https://discourse.nodered.org/t/can-i-generate-a-custom-node-using-code-inside-ui-template/24528/1 "2020-04-09T14:26:39Z")

</div>

I have created a custom UI using ui\_template and some graph code .  
But I need this as a custom node under dashboard category.

I know that node-red-nodegen needs function code .  
Is there a way to generate custom node from code inside ui\_template?

Please let me know.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [9 April 2020 21:26 UTC](https://discourse.nodered.org/t/can-i-generate-a-custom-node-using-code-inside-ui-template/24528/2 "2020-04-09T21:26:12Z")

</div>

no - that is not currently possible - you have to create a dedicated ui widget - if you search on [http://flows.nodered.org](http://flows.nodered.org) for `-ui-` you will find several ui widgets that you could perhaps crib ideas from.

---

<div class="post-metadata">

**Author:** ![josekavunkal](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/josekavunkal/32/18505_2.png) [@josekavunkal](https://discourse.nodered.org/u/josekavunkal)\
**Post date:** [10 April 2020 08:04 UTC](https://discourse.nodered.org/t/can-i-generate-a-custom-node-using-code-inside-ui-template/24528/3 "2020-04-10T08:04:38Z")

</div>

Thank you ,Jose

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [10 April 2020 11:16 UTC](https://discourse.nodered.org/t/can-i-generate-a-custom-node-using-code-inside-ui-template/24528/4 "2020-04-10T11:16:39Z")

</div>

If you don't need the other capabilities of the Dashboard, perhaps uibuilder would be a better fit for your needs.

You can use that with any framework (it comes with VueJS and bootstra-vue but you can just change it). Or you can get rid of the framework altogether if you don't need it. uibuilder itself provides a front-end library for handling 2-way communications with event triggers and control msgs.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [10 May 2020 11:16 UTC](https://discourse.nodered.org/t/can-i-generate-a-custom-node-using-code-inside-ui-template/24528/5 "2020-05-10T11:16:39Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
