F
Filament7mo ago
Sydd

saade autograph load signature

Dear all, I would ask if someone used plugin Saade autograph ... i try to load user signature from user model ? In DB is stored as base64 format. I'm trying do it from hint action but without succes result, any ideas to solve code below ? Probably some advice from more experienaced permanentne with $set ... I new with this.
SignaturePad::make('signatureTrainedUser')
->label(__('app.fireBrigade.ppls.adp.signatureTrainedUser'))
->dotSize(2.0)
->lineMinWidth(0.5)
->lineMaxWidth(2.5)
->throttle(16)
->minDistance(5)
->velocityFilterWeight(0.7)
->live()
->hintAction(
Forms\Components\Actions\Action::make('loadSignature')
->label(__('app.general.loadSignature'))
->color('info')
->icon('tabler-signature')
->action(function (Set $set) {
return $set('signatureTrainedUser', User::find(auth()->id())->signatureUser);
})
),
SignaturePad::make('signatureTrainedUser')
->label(__('app.fireBrigade.ppls.adp.signatureTrainedUser'))
->dotSize(2.0)
->lineMinWidth(0.5)
->lineMaxWidth(2.5)
->throttle(16)
->minDistance(5)
->velocityFilterWeight(0.7)
->live()
->hintAction(
Forms\Components\Actions\Action::make('loadSignature')
->label(__('app.general.loadSignature'))
->color('info')
->icon('tabler-signature')
->action(function (Set $set) {
return $set('signatureTrainedUser', User::find(auth()->id())->signatureUser);
})
),
2 Replies
Sydd
SyddOP7mo ago
When inpsecting image is loaded to value of component, but visualy is not refreshed ... please any idea how to refresh component ? after update ?
Dan Harrin
Dan Harrin7mo ago
Please ask in #saade-autograph
Want results from more Discord servers?
Add your server