From 8db5dde69d707026c73a059acde8aea65b56fbeb Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Tue, 19 Jan 2016 21:57:24 +0100 Subject: [PATCH 1/2] Add new parameter 'title' to guide the user The 'title' attribute will render as tooltip in the browser which is useful to provide guidance to the operator. --- lib/HTMLUtils.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/HTMLUtils.php b/lib/HTMLUtils.php index 3838c35..dce8b8f 100644 --- a/lib/HTMLUtils.php +++ b/lib/HTMLUtils.php @@ -80,6 +80,11 @@ CARD; $additionalInfoString .= " pattern=\"".$inputEntry['pattern']."\""; } + if(isset($inputEntry['title'])) { + + $additionalInfoString .= " title=\"" .$inputEntry['title']."\""; + + } if(!isset($inputEntry['exampleValue'])) $inputEntry['exampleValue'] = ""; $idArg = 'arg-' . urlencode($bridgeName) . '-' . urlencode($parameterName) . '-' . urlencode($inputEntry['identifier']); From 58e828e69ad342dca4f0a61e1ea515ec8ac9ca0b Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Tue, 19 Jan 2016 22:00:18 +0100 Subject: [PATCH 2/2] Add optional parameter 'title' to the readme --- CREATE_BRIDGE.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CREATE_BRIDGE.md b/CREATE_BRIDGE.md index 6324221..7041ec9 100644 --- a/CREATE_BRIDGE.md +++ b/CREATE_BRIDGE.md @@ -90,6 +90,7 @@ Parameter Name | Parameter values | Description type|text, number, list, checkbox| Type of the input, default is text required| true | Set this if you want your attribute to be required values| [ {"name" : option1Name, "value" : "option1Value"}, ...] | Values list, required with the 'list' type +title| text | Will be shown as tooltip when mouse-hovering over the input #### Guidelines