File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -399,9 +399,9 @@ public function label($label): FormService
399
399
* @param string $value
400
400
* @return \NetoJose\Bootstrap4Forms\FormService
401
401
*/
402
- public function button (string $ value = null ): FormService
402
+ public function button (string $ value = null , $ color = ' primary ' , $ size = null ): FormService
403
403
{
404
- return $ this ->type ('button ' )->value ($ value );
404
+ return $ this ->type ('button ' )->color ( $ color )-> size ( $ size )-> value ($ value );
405
405
}
406
406
407
407
/**
@@ -410,9 +410,9 @@ public function button(string $value = null): FormService
410
410
* @param string $value
411
411
* @return \NetoJose\Bootstrap4Forms\FormService
412
412
*/
413
- public function submit (string $ value ): FormService
413
+ public function submit (string $ value, $ color = ' primary ' , $ size = null ): FormService
414
414
{
415
- return $ this ->button ($ value )->type ('submit ' );
415
+ return $ this ->button ($ value )->type ('submit ' )-> color ( $ color )-> size ( $ size ) ;
416
416
}
417
417
418
418
/**
@@ -421,9 +421,9 @@ public function submit(string $value): FormService
421
421
* @param string $value
422
422
* @return \NetoJose\Bootstrap4Forms\FormService
423
423
*/
424
- public function reset (string $ value ): FormService
424
+ public function reset (string $ value, $ color = ' primary ' , $ size = null ): FormService
425
425
{
426
- return $ this ->type ('reset ' )->button ( $ value );
426
+ return $ this ->button ( $ value )-> type ('reset ' )->color ( $ color )-> size ( $ size );
427
427
}
428
428
429
429
/**
You can’t perform that action at this time.
0 commit comments