From 06d2aaf1e2bd3553f7a255e0f720d2cfd238b782 Mon Sep 17 00:00:00 2001 From: Adriano Costa Date: Tue, 2 Oct 2018 19:18:31 -0300 Subject: [PATCH] #363 Add placeholder option to input (#370) * Add placeholder option to input , change type of brightness input to number Changes to be committed: modified: examples/lib/defaultHtmlStepUi.js modified: src/modules/Brightness/info.json * change 0% to 0 in brightness placeholder --- examples/lib/defaultHtmlStepUi.js | 2 ++ src/modules/Brightness/info.json | 19 ++++++++++--------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/examples/lib/defaultHtmlStepUi.js b/examples/lib/defaultHtmlStepUi.js index 00f2463b..c9bb0371 100644 --- a/examples/lib/defaultHtmlStepUi.js +++ b/examples/lib/defaultHtmlStepUi.js @@ -71,6 +71,8 @@ function DefaultHtmlStepUi(_sequencer, options) { inputDesc.type + '" name="' + paramName + + '" placeholder ="' + + (inputDesc.placeholder || "") + '">'; } diff --git a/src/modules/Brightness/info.json b/src/modules/Brightness/info.json index ec561044..73175244 100644 --- a/src/modules/Brightness/info.json +++ b/src/modules/Brightness/info.json @@ -1,11 +1,12 @@ { - "name": "Brightness", - "description": "Change the brightness of the image by given percent value", - "inputs": { - "brightness": { - "type": "integer", - "desc": "% brightness for the new image", - "default": 0 - } - } + "name": "Brightness", + "description": "Change the brightness of the image by given percent value", + "inputs": { + "brightness": { + "type": "number", + "desc": "% brightness for the new image", + "placeholder": "0", + "default": 0 + } + } }