haythem/progress-bar
最新稳定版本:v2.0.4
Composer 安装命令:
composer require haythem/progress-bar
包简介
A Laravel Nova field.
README 文档
README
Package Description: A dynamic progress bar field for laravel nova
Installation
Install via composer
composer require haythem/progress-bar
Setup route
Route::get('/progressbar', function () {
return ["percentage" => rand(0, 100), "show" => true];
});
Usage
use Haythem\ProgressBar\ProgressBar; public function fields(Request $request) { return [ ProgressBar::make('Progress Bar') ->endPoint('/api/progress') ->callEvery(500) ->markAsDone(false) ->barColor("#FFC0CB") ->barBackgroundColor("yellow") ->textColor('pink') ->initLabel("please wait") ->processingLabel("processing") ->doneLabel("all is good") ->redirectWhenItsDone("https://www.google.com",true) //second parameter is optional to open the url in new tab or in the same tab. ->reloadWhenItsDone() ->showProgressBarInForms(true) // you can show progress bar in forms. ->animation(),//show three dots animation when initializing and processing. ]; }
统计信息
- 总下载量: 1.09k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-10-15




