Skip to content

Commit

Permalink
Merge pull request #119 from mul14/add-color-input-type
Browse files Browse the repository at this point in the history
Add color input type
  • Loading branch information
adamgoose committed Nov 28, 2015
2 parents 5ad8377 + b6b3693 commit 292a478
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/FormBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -869,6 +869,20 @@ public function image($url, $name = null, $attributes = [])
return $this->input('image', $name, null, $attributes);
}

/**
* Create a color input field.
*
* @param string $name
* @param string $value
* @param array $options
*
* @return string
*/
public function color($name, $value = null, $options = [])
{
return $this->input('color', $name, $value, $options);
}

/**
* Create a submit button element.
*
Expand Down

0 comments on commit 292a478

Please sign in to comment.