Merge pull request #202 from LogMANOriginal/InputTooltip

Customizable tooltip for input parameter
This commit is contained in:
Mitsu 2016-01-20 21:59:17 +01:00
commit cfac9e72f2
2 changed files with 6 additions and 0 deletions

View file

@ -90,6 +90,7 @@ Parameter Name | Parameter values | Description
type|text, number, list, checkbox| Type of the input, default is text type|text, number, list, checkbox| Type of the input, default is text
required| true | Set this if you want your attribute to be required required| true | Set this if you want your attribute to be required
values| [ {"name" : option1Name, "value" : "option1Value"}, ...] | Values list, required with the 'list' type 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 #### Guidelines

View file

@ -79,6 +79,11 @@ CARD;
$additionalInfoString .= " pattern=\"".$inputEntry['pattern']."\""; $additionalInfoString .= " pattern=\"".$inputEntry['pattern']."\"";
}
if(isset($inputEntry['title'])) {
$additionalInfoString .= " title=\"" .$inputEntry['title']."\"";
} }
if(!isset($inputEntry['exampleValue'])) $inputEntry['exampleValue'] = ""; if(!isset($inputEntry['exampleValue'])) $inputEntry['exampleValue'] = "";