Skip to content

Commit

Permalink
Add color input type
Browse files Browse the repository at this point in the history
  • Loading branch information
mul14 committed Nov 28, 2015
1 parent 5ad8377 commit b6b3693
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
@@ -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.
*

0 comments on commit b6b3693

Please sign in to comment.