PHP code example of signifly / nova-progressbar-card
1. Go to this page and download the library: Download signifly/nova-progressbar-card 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/ */
signifly / nova-progressbar-card example snippets
// in App\Nova\Product
...
use Signifly\Nova\Cards\ProgressBar\ProgressBar;
...
/**
* Get the cards available for the request.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public function cards(Request $request)
{
return [
(new ProgressBar)->options(['title' => 'Translations', 'percentage' => 0.5]);
];
}
public function cards(Request $request)
{
return [
(new ProgressBar)->options([
'title' => 'Translations',
'percentage' => 0.5,
'color' => '#123456',
]);
];
}
public function cards(Request $request)
{
return [
(new ProgressBar)->options([
'title' => 'Translations',
'percentage' => 0.5,
'colorFrom' => '#aaa',
'colorTo' => '#bbb',
'animateColor' => true,
]);
];
}
public function cards(Request $request)
{
return [
(new ProgressBar)->options([
'title' => 'Translations',
'percentage' => 0.5,
'strokeWidth' => 8,
]);
];
}
public function cards(Request $request)
{
return [
(new ProgressBar)->options([
'title' => 'Translations',
'percentage' => 0.5,
'type' => 'semi-circle',
]);
];
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.