Download the PHP package henryavila/laravel-nova-chordpro-field without Composer
On this page you can find all versions of the php package henryavila/laravel-nova-chordpro-field. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download henryavila/laravel-nova-chordpro-field
More information about henryavila/laravel-nova-chordpro-field
Files in henryavila/laravel-nova-chordpro-field
Package laravel-nova-chordpro-field
Short Description Add a Chordpro viewer and editor into Laravel Nova. The editor is a simple TextArea. The viewer display a fully formatted song.
License MIT
Informations about the package laravel-nova-chordpro-field
Laravel Nova Chordpro Field
Add a Chordpro viewer and editor into Laravel Nova. The editor is a simple TextArea. The viewer display a fully formatted song.
The following chordpro code
will be rendered inside Laravel Nova Field as
also, supports dark mode
If the Chorpro has some invalid content, it will be displayed in Detail view
This package is built with https://github.com/chordproject/chorpro-parser and https://github.com/eKoopmans/html2pdf.js and allows to
- Edit chordpro (simple TextArea editor)
- View a fully formatted song
- Display chordpro parser errors
- Generate a pdf with the formatted song
- Translate the displayed text like "Key", "Time", etc
Prerequisites
Installation
In a Laravel nova instance, install henryavila/laravel-nova-chordpro-field
Localization
Publish the package language files to your application's resources/lang/vendor
directory:
Usage
Assuming you have a Nova Resource with the chordpro
content in the chordpro
column, the following code will render the chordpro as displayed in the image above
Usage Options
Option | Description | Default Value |
---|---|---|
showTabs() |
Display tablature | true |
useSimpleChord() |
Simplify the chords. Ex: E/G# becomes E |
false |
showChords() |
Display the chords. If set to false, will display just the lyrics | true |
rows() |
Number of rows in the edit form | 20 |