Skip to content

Commit 7793ad7

Browse files
committed
Fixing missing buttons parameters
1 parent dd57cc6 commit 7793ad7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/FormService.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -399,9 +399,9 @@ public function label($label): FormService
399399
* @param string $value
400400
* @return \NetoJose\Bootstrap4Forms\FormService
401401
*/
402-
public function button(string $value = null): FormService
402+
public function button(string $value = null, $color = 'primary', $size = null): FormService
403403
{
404-
return $this->type('button')->value($value);
404+
return $this->type('button')->color($color)->size($size)->value($value);
405405
}
406406

407407
/**
@@ -410,9 +410,9 @@ public function button(string $value = null): FormService
410410
* @param string $value
411411
* @return \NetoJose\Bootstrap4Forms\FormService
412412
*/
413-
public function submit(string $value): FormService
413+
public function submit(string $value, $color = 'primary', $size = null): FormService
414414
{
415-
return $this->button($value)->type('submit');
415+
return $this->button($value)->type('submit')->color($color)->size($size);
416416
}
417417

418418
/**
@@ -421,9 +421,9 @@ public function submit(string $value): FormService
421421
* @param string $value
422422
* @return \NetoJose\Bootstrap4Forms\FormService
423423
*/
424-
public function reset(string $value): FormService
424+
public function reset(string $value, $color = 'primary', $size = null): FormService
425425
{
426-
return $this->type('reset')->button($value);
426+
return $this->button($value)->type('reset')->color($color)->size($size);
427427
}
428428

429429
/**

0 commit comments

Comments
 (0)