webbuilders-group/silverstripe-gridfield-calendar-view
最新稳定版本:3.1.0
Composer 安装命令:
composer require webbuilders-group/silverstripe-gridfield-calendar-view
包简介
A component for viewing a GridField's data as a calendar
README 文档
README
A component for viewing a GridField's data as a calendar, useful for things like event calendars. It also provides a toggle button that let's you switch between the default list view for a GridField and the Calendar view.
Maintainer Contact
- Ed Chipman (UndefinedOffset)
Requirements
- SilverStripe Framework ^6.0
Installation
Composer (recommended):
composer require webbuilders-group/silverstripe-gridfield-calendar-view
If you prefer you may also install manually:
- Download the module from here https://github.com/webbuilders-group/silverstripe-gridfield-calendar-view/releases
- Extract the downloaded archive into your site root so that the destination folder is called gridfield-calendar-view, opening the extracted folder should contain _config.php in the root along with other files/folders
- Run dev/build?flush=all to regenerate the manifest
Quick Start
To get started you need to have an object that can be rendered as a item on a calendar. Then you need to add the GridFieldCalendarView component to your GridField's config. For example:
$myGridField=new GridField('Events', 'Events', $this->Events(), GridFieldConfig_RecordEditor::create(10)); $myGridField->getConfig()->addComponent(new GridFieldCalendarView( 'StartDateTimeField', //This must be the name of the field in the model not a getter method 'EndDateTimeField' ));
There are more options available, when adding the component for information on these see the documentation for more information.
统计信息
- 总下载量: 5.69k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2016-10-05