Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Widget: Template #51

Closed
joepavitt opened this issue Jun 23, 2023 · 3 comments
Closed

Widget: Template #51

joepavitt opened this issue Jun 23, 2023 · 3 comments
Assignees
Labels
feature-request New feature or request that needs to be turned into Epic/Story details needs-triage Needs looking at to decide what to do size:XL - 8 Sizing estimation point widget This issue details a new widget request

Comments

@joepavitt
Copy link
Collaborator

Description

A freeform editor in Node-RED that allows a user to define their own HTML/Vue code and that is then rendered inside the Vue application.

Properties

The UX within Dashboard 1.0:

Screenshot 2023-06-23 at 22 07 59

Events

Not sure on events here, in theory, we could provide some wrapper functions for the core supported events, and then the user could utilise those within the custom-defined html.

Controls

  • enabled: this widget could be enabled/disabled

Existing Examples

none

Have you provided an initial effort estimate for this issue?

I have provided an initial effort estimate

@joepavitt joepavitt added size:XL - 8 Sizing estimation point needs-triage Needs looking at to decide what to do feature-request New feature or request that needs to be turned into Epic/Story details widget This issue details a new widget request labels Jun 23, 2023
@joepavitt
Copy link
Collaborator Author

I did add scaffolding for this in #33. It utilised v-html but was limited to just computing the JS within. It couldn't render reference to any VueJS variables for example, so further investigation is required.

@joepavitt joepavitt mentioned this issue Jul 4, 2023
3 tasks
@joepavitt joepavitt moved this to 📌 Must Have in Dashboard Backlog Aug 1, 2023
@joepavitt
Copy link
Collaborator Author

Making progress in ui-template branch:

Screen.Recording.2023-08-02.at.19.19.18.mov

@joepavitt joepavitt self-assigned this Aug 3, 2023
@MarianRaphael MarianRaphael moved this from 📌 Must Have to In Progress in Dashboard Backlog Aug 3, 2023
@joepavitt joepavitt moved this from In Progress to Done in Dashboard Backlog Aug 8, 2023
@joepavitt
Copy link
Collaborator Author

Closing this issue out as we now have a functional Template node (with base html templating, and tow provided functional calls to interact with Node-RED - send and submit), however, going to open a new issue to track the addition of script and style tabs in the template editor to further enhance this widget.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or request that needs to be turned into Epic/Story details needs-triage Needs looking at to decide what to do size:XL - 8 Sizing estimation point widget This issue details a new widget request
Projects
Status: Done
Development

No branches or pull requests

1 participant