GrapesJS / components-countdown

Simple countdown component for the GrapesJS Editor
BSD 3-Clause "New" or "Revised" License
22 stars 37 forks source link

[QUESTION] pluginOpts are ignored #11

Closed Lighost closed 2 years ago

Lighost commented 4 years ago

Hello,

I have issue with pluginOpts. I have wanted to set up my countdown with translated labels and start date. But when I set pluginOpts as shown here, nothing happen. My pluginsOpt:

pluginsOpts: {
        'gjs-component-countdown': {
            options: {
                startTime: '2018-01-25 00:00',
                dateInputType: 'datetime-local',
                labelDays: 'dnů',
                labelHours: 'hodin',
                labelMinutes: 'minut',
                labelSeconds: 'sekund'
            }
        }
}

But result is same like when I don`t have any pluginsOpts. Other plugins for example gjs-blocks-basic or gjs-plugin-ckeditor are working corectly. Where could be problem?

taimoortahir7 commented 4 years ago

write options for plugin without options keyword

'gjs-component-countdown': { // startTime: '2020-07-27 00:00', // endText: 'Expired', dateInputType: 'datetime-local', labelCountdownCategory: 'Timer' }

artf commented 2 years ago

👆