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>",
);
Parameters
string$labelSets the label 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$disabledEnables/disables an input
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.