Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Flexible Event Calendar API

Security covered Under active development 47 sites

This module provides a render element to display events in a calendar format using the evo-calendar library. It allows you to define events with names, dates, and types to be rendered in a flexible calendar view.

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

Drupal 8–11

Ask your assistant about Flexible Event Calendar API

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

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

Tracked releases
1
Tracked since
Jul 2024
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core PHP Release date
2.0.0 Stable 8–11 Jul 11, 2024