You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*`labelDays` Days label text used in component, default 'days'
35
-
*`labelHours` Hours label text used in component, default 'hours'
36
-
*`labelMinutes` Minutes label text used in component, default 'minutes'
37
-
*`labelSeconds` Seconds label text used in component, default 'seconds'
23
+
| Option | Description | Default |
24
+
|-|-|-
25
+
|`id`| The ID used to create the block and component. |`countdown`|
26
+
|`label`| The label used for the block and the component. |`Countdown`|
27
+
|`block`| Object to extend the default block, eg. `{ label: 'Countdown', category: 'Extra', ... }`. Pass a falsy value to avoid adding the block. |`{}`|
28
+
|`props`| Object to extend the default component properties., eg. `{ name: 'Countdown', droppable: false, ... }`. |`{}`|
29
+
|`style`| Custom CSS styles for the component. This will replace the default one. |`''`|
30
+
|`styleAdditional`| Additional CSS styles for the component. These will be appended to the default one. |`''`|
31
+
|`startTime`| Default start time, eg. `2030-01-25 00:00`. |`''`|
32
+
|`endText`| Text to show when the countdown is ended. |`'EXPIRED'`|
33
+
|`dateInputType`| Date input type, eg. `date`, `datetime-local`|`'date'`|
34
+
|`labelDays`| Days label text used in component. |`'days'`|
35
+
|`labelHours`| Hours label text used in component. |`'hours'`|
36
+
|`labelMinutes`| Minutes label text used in component. |`'minutes'`|
37
+
|`labelSeconds`| Seconds label text used in component. |`'seconds'`|
38
+
|`classPrefix`| Countdown component class prefix. |`'countdown'`|
38
39
39
40
40
41
41
42
42
43
43
44
## Download
44
45
45
-
*`npm i grapesjs-component-countdown` or `yarn add grapesjs-component-countdown`
0 commit comments