https://github.com/appstract/nova-signature-field
Signature Pad as a Nova Field
https://github.com/appstract/nova-signature-field
Last synced: over 1 year ago
JSON representation
Signature Pad as a Nova Field
- Host: GitHub
- URL: https://github.com/appstract/nova-signature-field
- Owner: appstract
- License: mit
- Created: 2020-03-28T21:21:20.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-10-27T16:37:36.000Z (over 4 years ago)
- Last Synced: 2025-02-10T14:03:12.699Z (over 1 year ago)
- Language: Vue
- Homepage:
- Size: 307 KB
- Stars: 7
- Watchers: 4
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Nova Signature Field
[](https://packagist.org/packages/appstract/nova-signature-field)
[](https://packagist.org/packages/appstract/nova-signature-field)
[](LICENSE.md)
Add a Signature Pad field to Nova.
## Installation
You can install the package via composer:
``` bash
composer require appstract/nova-signature-field
```
## Usage
Just add the field to your resource.
```php
use Appstract\NovaSignatureField\Signature;
public function fields(Request $request)
{
return [
Signature::make('Drawing')
];
}
```
It is also possible to pass some options to field:
```php
// Edit in a modal, so the SignaturePad is bigger
Signature::make('Drawing')->editInModal()
// Full width image on detail, without label
Signature::make('Drawing')->fullWidthOnDetail()
```
## Contributing
Contributions are welcome, [thanks to y'all](https://github.com/appstract/nova-signature-field/graphs/contributors) :)
## About Appstract
Appstract is a small team from The Netherlands. We create (open source) tools for Web Developers and write about related subjects on [Medium](https://medium.com/appstract). You can [follow us on Twitter](https://twitter.com/appstractnl), [buy us a beer](https://www.paypal.me/appstract/10) or [support us on Patreon](https://www.patreon.com/appstract).
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.