Version 0.9.5 beta - added maxlength and tabindex for the input field

This commit is contained in:
Stephan Kasdorf
2020-09-07 12:56:58 +02:00
parent 0d6a207d80
commit 5ea2781321
2 changed files with 3 additions and 1 deletions

View File

@@ -63,6 +63,8 @@ class FormAttributes
$this->_element = str_replace(' onsubmit="ONSUBMIT"', '', $this->_element);
$this->_element = str_replace(' onclick="ONCLICK"', '', $this->_element);
$this->_element = str_replace(' action="ACTION"', '', $this->_element);
$this->_element = str_replace(' maxlength="MAXLENGTH"', '', $this->_element);
$this->_element = str_replace(' tabindex="TABINDEX"', '', $this->_element);
$this->_element = str_replace(' SPEECH', '', $this->_element);
$this->_element = str_replace(' FORM', '', $this->_element);
$this->_element = str_replace(' placeholder="PLACEHOLDER"', '', $this->_element);

View File

@@ -34,7 +34,7 @@ class TypeText extends FormAttributes implements IForm
*/
private function _setElement( )
{
$this->_element = '<input type="text" name="NAME" value="VALUE" placeholder="PLACEHOLDER" required="REQUIRED" SPEECH ID CLASS>' . "\n";
$this->_element = '<input type="text" name="NAME" value="VALUE" placeholder="PLACEHOLDER" maxlength="MAXLENGTH" tabindex="TABINDEX" required="REQUIRED" SPEECH ID CLASS>' . "\n";
}