Flexible Event Calendar API
It provides render element to generate our own array format from the event content to display in the calendar by integrating with evo-calendar library.
You can find more information about this plugin in the below link,
- https://github.com/edlynvillegas/evo-calendar
Usage :
This module require parameters to pass to the render element. Create a custom block plugin and pass the value in the below
format as return value.
$build['flexible_event_calendar'] = [
'#data' => [
'events' => [
[
'id' => '111' , 'name' => 'New Year', 'date' => "January/1/2020", 'type' => "event"
],
[
'id' => '111' , 'name' => 'Organization Meeting', 'date' => "January/1/2020", 'type' => "event"
],
[
'id' => '222' , 'name' => 'Board Meeting', 'date' => "January/31/2020", 'type' => "event"
],
],
],
'#type' => 'flexible_event_calendar'
];
To override the evo-calendar.custom.js file, place this file in the custom module js folder and mention the dependencies in the custom libraries.yml file.
dependencies:
- flexible_event_calendar/flexible_event_calendar_js $build['flexible_event_calendar'] = [
'#data' => [
'events' => [
[
'id' => '111' , 'name' => 'New Year', 'date' => "January/1/2020", 'type' => "event"
],
],
],
'#type' => 'flexible_event_calendar'
'#attached' => [
'library' => [
'custom_module_name/custom_library_name',
],
],
];
INSTALLATION
* Install the Flexible Event Calendar API module as you would normally install a
contributed Drupal module. Visit https://www.drupal.org/node/1897420
for further information.
MAINTAINERS
Current maintainers:
Elavarasan R - https://www.drupal.org/user/1902634
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Releases
| Version | Type | Core | Release date | |
|---|---|---|---|---|
| 2.0.0 | Stable | Jul 11, 2024 |