From c96ca293b23d2f29c3b41adc6faf6ec25bb59902 Mon Sep 17 00:00:00 2001 From: larylinz Date: Tue, 18 Apr 2023 09:36:07 +0200 Subject: [PATCH 1/2] Update SignaturePad.php add submitClasses and clearClasses --- src/Components/SignaturePad.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/Components/SignaturePad.php b/src/Components/SignaturePad.php index 216b60c..b7d6df7 100644 --- a/src/Components/SignaturePad.php +++ b/src/Components/SignaturePad.php @@ -12,7 +12,9 @@ class SignaturePad extends Component public string $padClasses; - public string $buttonClasses; + public string $submitClasses; + + public string $clearClasses; public string $borderColor; @@ -29,7 +31,8 @@ public function __construct( float $width = null, float $height = null, string $padClasses = '', - string $buttonClasses = '', + string $submitClasses = '', + string $clearClasses = '', string $borderColor = '#777777', string $submitName = 'Submit', string $clearName = 'Clear' @@ -38,7 +41,8 @@ public function __construct( $this->height = $height ?? config('sign-pad.height'); $this->padClasses = $padClasses; - $this->buttonClasses = $buttonClasses; + $this->submitClasses = $submitClasses; + $this->clearClasses = $clearClasses; $this->borderColor = $borderColor; From 322b35f695a03202f27f46f307d2c7c3b0dd2717 Mon Sep 17 00:00:00 2001 From: larylinz Date: Tue, 18 Apr 2023 09:37:52 +0200 Subject: [PATCH 2/2] Update signature-pad.blade.php added clearClasses and submitClasses --- resources/views/components/signature-pad.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/components/signature-pad.blade.php b/resources/views/components/signature-pad.blade.php index 62425c9..a44fd59 100644 --- a/resources/views/components/signature-pad.blade.php +++ b/resources/views/components/signature-pad.blade.php @@ -5,8 +5,8 @@ class="{{ $padClasses }}">
- - + +