Skip to content

Add documentation about how to use plugins #352

@Gorzas

Description

@Gorzas

I'm currently working with ember-flatpickr and using the week select plugin. As I tested, you currently can use plugins with this library but I think it should be documented.

We could use the plugin the following way:

{{ember-flatpickr
  plugins=plugins
}}

And having the controller like this:

import Controller from '@ember/controller';
import weekSelect from 'flatpickr/dist/plugins/weekSelect/weekSelect';

export default Controller.extend({
    plugins: [new weekSelect()],
});

What do you think?

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