Clock
Description
Just a clock for your dashboard. Cool, isn't it? Just for fun.
Configuration
use App\Models\User;
use AlexKudrya\Adminix\AdminixPage;
use AlexKudrya\Adminix\Modules\Clock\ClockModule;
use Carbon\Carbon;
...
$page = new AdminixPage();
...
$page->addModule(
ClockModule::title('Current date and time')
->locale('en')
->name('clock')
);
...
To add to the page Clock module you need paste AlexKudrya\Adminix\Modules\Clock\ClockModule
class instance as an argument to addModule
or addModules
method of AdminixPage
object.
ClockModule
configuration
Method | Description | |
---|---|---|
title | Title visible on mouseover.
title('Current date and time')
| Optional |
name | Name of module, must be unique in current page.
name('clock')
| Required |
locale | Locale for date text. By default Available locales you can see here Moment.js
locale('en')
| Required |
disableDate | Disabling date text, if you want to see only time on your clock module.
disableDate()
| Optional |
disableTime | Disabling time, if you want to see only date text on your clock module.
disableTime()
| Optional |
Last modified: 12 June 2024