List of default options for inputs

These are general defaults for input elements that can be overridden on a per input basis:

<?php
$form = new Depage\HtmlForm\HtmlForm('simpleForm');
$input = $form->addText('input', array(
'autocapitalize' => true,
'autocomplete' => true,
'autocorrect' => true,
'autofocus' => true,
'disabled' => false,
'errorMessage' => "There was a problem with your input",
'label' => "Normal Input",
'marker' => "*",
'required' => true,
'class' => "my-class",
'helpMessage' => "addition help message",
'helpMessageHtml' => "addition <b>help message</b>",
);
main interface to users
Definition HtmlForm.php:120
Parameters
bool$disabledEnables/disables an input
variant$dataAttrOptional associated Array of values that will be added as data-Attribute to the container element
variant$classOptional CSS class of the container element
string$labelSets the label for the input
string$labelHtmlSets the unescaped label for the input
string$titleSets the title for the input
string$langSets the lang for the input
string$defaultValueSets the default value for the input
string$markerSets marker character(s) that gets display on required fields.
bool$requiredSets wether an input is required to hold a value to be valid
bool$readonlyMarks an input as readonly
string | function$validatorSets the validator for the input.
string$classClass name or class names that gets added to wrapper paragraph.
bool$autofocussets current input to get autofocus on a page. If you set the autofocus to more than one input - The first one gets the focus.
bool$autocapitalizeEnables/disables autocapitalizion (mostly on mobile devices)
bool$autocorrectEnables/disables autocorrection
bool$autocompleteUsed to enable/disable autocorrect
string$errorMessageSets the message that will be displayed in case of invalid input
string$helpMessageOptional help message that may be used for extra information e.g. tooltips. These string will be html escaped.
string$helpMessageHtmlOptional help message that may be used for extra information e.g. tooltips. These string won't be escaped as therefor has to be valid html.
variant$dataPathOptional info for the data saved in the element. This value isn't used internally in the htmlform, but can be used to add extra data to an element that can be read out at a later time. E.g. you can add an object- or an xml-xpath to the element.