Laravel Community Tools by Tighten
Laravel Nova icon Nova Packages
N

ProgressBar Card

This package is possibly abandoned. Please proceed with care.

Readme

Nova ProgressBar Card

Latest Version on Packagist Total Downloads License

This package allows you to add progressbar cards to your resources and dashboards in Nova.

Example

DISCLAIMER:

This package is still work in progress. Feel free to help improve it.


Requirements


Installation

Just run:

composer require signifly/nova-progressbar-card

After this the setup will be complete and you can use the components listed here.


Basic Usage

// 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]);
    ];
}

Advanced Options

Custom color

public function cards(Request $request)
{
    return [
        (new ProgressBar)->options([
            'title' => 'Translations',
            'percentage' => 0.5,
            'color' => '#123456',
        ]);
    ];
}

Animate Bar Color A -> B

public function cards(Request $request)
{
    return [
        (new ProgressBar)->options([
            'title' => 'Translations',
            'percentage' => 0.5,
            'colorFrom' => '#aaa',
            'colorTo' => '#bbb',
            'animateColor' => true,
        ]);
    ];
}

Stroke Width

public function cards(Request $request)
{
    return [
        (new ProgressBar)->options([
            'title' => 'Translations',
            'percentage' => 0.5,
            'strokeWidth' => 8,
        ]);
    ];
}

Semi Circle Type Progress Bar

public function cards(Request $request)
{
    return [
        (new ProgressBar)->options([
            'title' => 'Translations',
            'percentage' => 0.5,
            'type' => 'semi-circle',
        ]);
    ];
}

Feel free to come with suggestions for improvements.

Back to Top
Added 6 years ago
Last updated 6 Years Ago
Version v0.2.1
Composer
signifly/nova-progressbar-card
GitHub stars 0
Packagist downloads 17,526

Favorites

7 users favorited

Rating

4.00
(out of 5)
★★★★★
★★★★
★★★
★★
2 ratings

Brought to you by Tighten

Issues/Feature Requests Stats Package Ideas