Skip to content

JS API example #17

Description

@dkre

Hi Dakala,

Really appreciate the work you've done with this module port, it's made D8 calendar creation a breeze.

I'm hoping you can help me with a bit of guidance on how to create a js api plugin. I've used the api example and looked at the example used by fullcalendar_options but I still can't get any option to be applied or get a custom function to be used (specifically I'm looking to use jQuery date picker as a gotoDate and date range filter).

Here's a non-working example:

`(function($) {

Drupal.fullcalendar.plugins.mymodule = {

options: function (fullcalendar) {
var settings = Drupal.settings.fullcalendar[fullcalendar.dom_id].mymodule;
var options = $.extend(
{
header: {
left: 'title',
center: '',
right: 'today prev,next'
},
},
settings
);
return options;
},
};

}(jQuery));`

Any help you can provide would be greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions