From f4fe7597c7e734821aa28304a1deb6cfcfd36df0 Mon Sep 17 00:00:00 2001 From: JeroenSt Date: Tue, 2 Jun 2020 17:31:20 +0200 Subject: [PATCH] Added feature: Disable min and max value https://github.com/hotNipi/node-red-contrib-ui-level/issues/24 --- ui-level.html | 12 ++++++++++++ ui-level.js | 8 ++++---- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/ui-level.html b/ui-level.html index 9721160..5164671 100644 --- a/ui-level.html +++ b/ui-level.html @@ -68,6 +68,7 @@ textAnimations: { value: false }, hideValue: { value: false }, tickmode: { value: 'off' }, + minmaxticks: { value: 'show' }, peakmode: { value: false }, peaktime: { value: 3000, required: false, validate: function (v) { @@ -122,6 +123,10 @@ this.tickmode = 'off'; $('#node-input-tickmode').val('off'); } + if (this.minmaxticks === undefined) { + this.minmaxticks = 'show'; + $('#node-input-minmaxticks').val('show'); + } if (this.colorschema === undefined) { this.colorschema = fixed; $('#node-input-colorschema').val('Multiple segments'); @@ -357,6 +362,13 @@ +
+ + +