diff --git a/CREATE_BRIDGE.md b/CREATE_BRIDGE.md index 6324221c..7041ec93 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 diff --git a/lib/HTMLUtils.php b/lib/HTMLUtils.php index 3838c35d..dce8b8f0 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']);