Add default value for text widget (#1179)

* Add default value for text widget

* Revert "Add default value for text widget"

This reverts commit fc03b3bdcf.

t

* Remove extra space and add text widget

* add value at proper place and remove from display
This commit is contained in:
nik 2021-10-21 21:29:47 +05:30 committed by GitHub
parent a3d009236c
commit 8a51fe36ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -266,6 +266,7 @@ export const componentTypes = [
showOnMobile: { type: 'toggle', displayName: 'Show on mobile' },
},
properties: {
value: { type: 'code', displayName: 'Default value' },
placeholder: { type: 'code', displayName: 'Placeholder' },
},
@ -295,7 +296,7 @@ export const componentTypes = [
showOnMobile: { value: false },
},
properties: {
value: { value: '' },
value: { value: "Hello have a great {{moment().format('dddd')}} 👋" },
placeholder: { value: 'Placeholder text' },
},
events: [],