Ein input-field wird zur Eingabe von allgemeinen Werten im Formular verwendet.
/**
* Create a Bootstrap form field to enter a signature
*
* Creates the input and canvas group for an element with the correct classes for errors.
*
* @param string $name
* @param string $label
* @param string $value
* @param array $options
* @return string
*/
public function signpad($name, $label = null, $value = null, array $options = []) {...}
$name | Name des Input-Feldes. Dieser wird beim senden des Formulars in $_GET übergeben. | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
$label | Feldüberschrift für das Eingabefeld. Wird kein $label übergeben, so wird $name als Label übernommen | ||||||||||||||
$value | Eingabewert für das Input-Feld. | ||||||||||||||
$options |
Array mit Optionen zu der input-Group. Hier sind grundsätlich alle HTML-Attribute möglich. Weiterhin können spezifische Optionen für das SIGNPAD eingetragen werden: Interne Optionen: Es sind alle Optionen aus dem "input"-Element möglich! Elementspezifische Optionen:
|
Beispiel:
Input-Feld als Signature-Pad (Unterschriftenbereich).
// Hier der Test mit dem Signature-Pad
$FormHtml [] = $tb->signpad ( 'MeinSignaturePad', 'Unterschrift', null, [
'helptext' => 'Bitte unterzeichnen sie hier:',
'height' => 250,
'title' => 'Bereich für die Unterschrift',
'right_column_class' => $tb->column_class [8],
'signpad' => [
'height' => 250,
'penColor' => '#82cb27'
]
] );