Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
disabled: this.listsDropdownDisabled,
}),
PropertyPaneLabel('eventStartDate', {
text: strings.eventSelectDatesLabel
}),
PropertyFieldDateTimePicker('eventStartDate', {
label: 'From',
initialDate: this.properties.eventStartDate,
dateConvention: DateConvention.Date,
onPropertyChange: this.onPropertyPaneFieldChanged,
properties: this.properties,
onGetErrorMessage: this.onEventStartDateValidation,
deferredValidationTime: 0,
key: 'eventStartDateId'
}),
PropertyFieldDateTimePicker('eventEndDate', {
label: 'to',
initialDate: this.properties.eventEndDate,
dateConvention: DateConvention.Date,
onPropertyChange: this.onPropertyPaneFieldChanged,
properties: this.properties,
onGetErrorMessage: this.onEventEndDateValidation,
deferredValidationTime: 0,
key: 'eventEndDateId'
}),
PropertyPaneLabel('errorMessage', {
text: this.errorMessage,
}),
]
}
]
}
groupFields: [
PropertyPaneTextField('siteUrl', {
label: strings.SiteUrlFieldLabel,
onGetErrorMessage: this.onSiteUrlGetErrorMessage.bind(this),
value: this.context.pageContext.site.absoluteUrl,
deferredValidationTime: 1200,
}),
PropertyPaneDropdown('list', {
label: strings.ListFieldLabel,
options: this.lists,
disabled: this.listsDropdownDisabled,
}),
PropertyPaneLabel('eventStartDate', {
text: strings.eventSelectDatesLabel
}),
PropertyFieldDateTimePicker('eventStartDate', {
label: 'From',
initialDate: this.properties.eventStartDate,
dateConvention: DateConvention.Date,
onPropertyChange: this.onPropertyPaneFieldChanged,
properties: this.properties,
onGetErrorMessage: this.onEventStartDateValidation,
deferredValidationTime: 0,
key: 'eventStartDateId'
}),
PropertyFieldDateTimePicker('eventEndDate', {
label: 'to',
initialDate: this.properties.eventEndDate,
dateConvention: DateConvention.Date,
onPropertyChange: this.onPropertyPaneFieldChanged,
properties: this.properties,
onGetErrorMessage: this.onEventEndDateValidation,