Skip to content

Commit

Permalink
Merge pull request #16 from alllinux/v1.0.1
Browse files Browse the repository at this point in the history
Add placeholder attribute to search form
  • Loading branch information
alllinux authored Mar 12, 2024
2 parents 1397cac + a7ce133 commit 0509790
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/c/typesearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ class TypeSearch extends FormAttributes implements IForm
{
private $_attributes = array(
self::FORM_ATTRIBUTE_CLASS => '',
self::FORM_ATTRIBUTE_ID => ''
self::FORM_ATTRIBUTE_ID => '',
self::FORM_ATTRIBUTE_PLACEHOLDER => ''
);

public function loadElement( $attributes )
Expand All @@ -29,7 +30,7 @@ public function loadElement( $attributes )
*/
private function _setElement( )
{
$this->_element = '<input type="search" ID CLASS>' . "\n";
$this->_element = '<input type="search" placeholder="PLACEHOLDER" ID CLASS>' . "\n";
}


Expand Down

0 comments on commit 0509790

Please sign in to comment.