node-red-dashboard icon indicating copy to clipboard operation
node-red-dashboard copied to clipboard

Widget: Number Input

Open joepavitt opened this issue 2 years ago • 3 comments

Description

Screenshot 2023-06-23 at 21 31 29

Called a "numeric" in the existing Dashboard 1.0. Would be similar to #38, but provide up/down arrows in the UI to modify the value.

Properties

Existing Dashboard 1.0 Properties:

Screenshot 2023-06-23 at 21 29 56

Events

  • on-change: this widget would need to send a message back to Node-RED when it's value is changed/updated

Controls

  • enabled: this widget can be enabled/disabled

Existing Examples

Would require a custom built piece of HTML/JS

Have you provided an initial effort estimate for this issue?

I have provided an initial effort estimate

joepavitt avatar Jun 23 '23 20:06 joepavitt

#75 includes the text input widget, which itself has a "number" mode. In Dashboard 1.0 however, the numeric was considered a different wigdet, and so we should be consistent here.

joepavitt avatar Jul 28 '23 07:07 joepavitt

#75 includes the text input widget, which itself has a "number" mode. In Dashboard 1.0 however, the numeric was considered a different wigdet, and so we should be consistent here.

From my point of view the numeric would no longer be necessary, if the text-input would get the missing features:

  • min value
  • max value
  • step

m-schaeffler avatar Mar 28 '24 18:03 m-schaeffler

Thanks for the input @m-schaeffler - Having seen a lot of industrial Dashboards over the past few months ,I think I'm being persuaded more and more than a ui-numeric should be included as a standalone widget. It is very popular in industry, and has distinct layout/options difference from ui-text-input

joepavitt avatar Mar 28 '24 18:03 joepavitt