idf/nova-worldclock-card
最新稳定版本:3.3.1
Composer 安装命令:
composer require idf/nova-worldclock-card
包简介
A Laravel Nova card to display world clocks
README 文档
README
A Laravel Nova card to display world clock.
Installation
You can install the package in to a Laravel app that uses Nova via composer:
composer require interaction-design-foundation/nova-worldclock-card
Usage
Basic usage:
use InteractionDesignFoundation\WorldClockCard\WorldClock; public function cards() { return [ (new WorldClock()) ->timezones([ 'Asia/Dubai', 'America/New_York', 'Europe/Kiev', ]), ]; }
Advanced usage:
use InteractionDesignFoundation\WorldClockCard\WorldClock; public function cards() { return [ (new WorldClock()) ->timezones([ 'Asia/Dubai', 'America/New_York', 'Europe/Kiev', ]) ->timeFormat('h:i') // Optional, time format. Default is: 'h:i' ->updatePeriod(1000) // Optional, to set updating time period in millisecond. ->nightRange(22, 6) // Optional, to set range of night hours. Default is [19; 6). ->hideContinents() // Optional, hide continents from timezone-names. ->timezoneDescriptions([ // Optional, add text description to timezones. 'Asia/Dubai' => 'Yuto, Hana', 'America/New_York' => 'Mark', 'Europe/Kiev' => 'Slava, Ukraine', ]), ]; }
Changelog
Please see Releases for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 58.1k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 8
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-11-30
