Add in the other prevalue for this property editor 'offsetTime' bool

This commit is contained in:
Warren Buckley
2023-02-01 14:57:11 +00:00
parent 0235e46dcc
commit d2d5bfde50

View File

@@ -15,15 +15,25 @@ export const manifest: ManifestPropertyEditorUI = {
{
alias: 'format',
label: 'Date format',
description: 'If left empty then the format is YYYY-MM-DD. (see momentjs.com for supported formats)',
description: 'If left empty then the format is YYYY-MM-DD',
propertyEditorUI: 'Umb.PropertyEditorUI.TextBox',
},
{
alias: 'offsetTime',
label: 'Offset time',
description: 'When enabled the time displayed will be offset with the servers timezone, this is useful for scenarios like scheduled publishing when an editor is in a different timezone than the hosted server',
propertyEditorUI: 'Umb.PropertyEditorUI.Toggle',
},
],
defaultData: [
{
alias: 'format',
value: 'YYYY-MM-DD HH:mm:ss',
},
{
alias: 'offsetTime',
value: false
}
],
},
},