PHP code example of ideatocode / nova-tooltip-field
1. Go to this page and download the library: Download ideatocode/nova-tooltip-field library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ideatocode / nova-tooltip-field example snippets
use Ideatocode\NovaTooltipField\Tooltip;
Tooltip::make('More', function(){
return 'This a tooltip. You can put lengthy content here or any additional info.';
}),
Tooltip::make('More', function(){
return '<h4>Additional User info</h4>'
. ' <strong>Created at : </strong>' . Carbon::parse($this->created_at)->diffForHumans()
. '<br>'
.' <strong>Updated at : </strong>' . Carbon::parse($this->created_at)->diffForHumans();
})->asHtml(),
Tooltip::make('More', function(){
return '<h4>Additional User info</h4>'
. ' <strong>Created at : </strong>' . Carbon::parse($this->created_at)->diffForHumans()
. '<br>'
.' <strong>Updated at : </strong>' . Carbon::parse($this->created_at)->diffForHumans();
})->asHtml()->trigger('oh <b>Ya!</b>'),
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.