Skip to content

Commit 292a478

Browse files
committed
Merge pull request #119 from mul14/add-color-input-type
Add color input type
2 parents 5ad8377 + b6b3693 commit 292a478

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/FormBuilder.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -869,6 +869,20 @@ public function image($url, $name = null, $attributes = [])
869869
return $this->input('image', $name, null, $attributes);
870870
}
871871

872+
/**
873+
* Create a color input field.
874+
*
875+
* @param string $name
876+
* @param string $value
877+
* @param array $options
878+
*
879+
* @return string
880+
*/
881+
public function color($name, $value = null, $options = [])
882+
{
883+
return $this->input('color', $name, $value, $options);
884+
}
885+
872886
/**
873887
* Create a submit button element.
874888
*

0 commit comments

Comments
 (0)