Download the PHP package elipzis/nova-embed-card without Composer
On this page you can find all versions of the php package elipzis/nova-embed-card. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package nova-embed-card
Laravel Nova Embed Card
A custom Laravel Nova card to embed external content in an iframe, e.g. from YouTube on a dashboard.
Installation
You can install the package to your Laravel Nova enabled project via composer:
Usage
Use the EmbedCard()
by adding it to your cards
method of the NovaServiceProvider
or your custom dashbord.
See the Laravel Nova documentation for more insights about cards.
Card options
Content options
url('string')
: The URL to embed. If an URL is set, code is neglected.code('string')
: Raw<iframe>...</iframe>
HTML content to embed.
Either url
or code
have to be configured
Text options
header('string')
: Header text to lead the embedded content as simple text string or raw HTMLfooter('string')
: Footer text to conclude the embedded content as simple text string or raw HTML
Styling options
center('bool')
: Center texts and content. Defaults to 'true'.height('string')
: The height of the card as 'auto', 'default' or a pixel number. Defaults to 'auto'forceFullWidth()
: Force the card to be full widthcardClasses('string')
: CSS classes to attach to the card elementheaderClasses('string')
: CSS classes to attach to the header elementfooterClasses('string')
: CSS classes to attach to the footer element
Example
Compatibility
This custom Laravel Nova Embed Card has been tested with Laravel Nova v3.8.2
License and Credits
The Laravel Nova Embed Card is released under the MIT license by elipZis.
Disclaimer
This source and the whole package comes without a warranty. It may or may not harm your computer. Please use with care. Any damage cannot be related back to the author. The source has been tested on a virtual environment and scanned for viruses and has passed all tests.