Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
text: strings.UseCorsFieldDescription
}),
// use CORS toggle
PropertyFieldToggleWithCallout("useCORS", {
disabled: isMock,
calloutTrigger: CalloutTriggers.Hover,
key: "useCORSFieldId",
label: strings.UseCORSFieldLabel,
//calloutWidth: 200,
calloutContent: React.createElement("p", {}, isMock ? strings.UseCORSFieldCalloutDisabled : strings.UseCORSFieldCallout),
onText: strings.CORSOn,
offText: strings.CORSOff,
checked: useCORS
}),
// cache duration slider
PropertyFieldSliderWithCallout("cacheDuration", {
calloutContent: React.createElement("div", {}, strings.CacheDurationFieldCallout),
calloutTrigger: CalloutTriggers.Hover,
calloutWidth: 200,
key: "cacheDurationFieldId",
label: strings.CacheDurationFieldLabel,
max: 1440,
min: 0,
step: 15,
showValue: true,
value: cacheDuration
}),
// how many items are we diplaying in a page
PropertyFieldNumber("maxEvents", {
key: "maxEventsFieldId",
label: strings.MaxEventsFieldLabel,
description: strings.MaxEventsFieldDescription,