I am creating one banner widget in which i am uploading the image and i have defined one widget property which is one dropdown showing all image variants. Based on that selection i want to render widget.
Now in the dropdown widget property currently i have hardcoded the options as follow:
[DropDownComponent(Label = "Select Image Variants Type",
Order = 1,
Options = $"Default;Default" + $
"\nImageVariant1;ImageVariant1"
+
$"\nImageVariant2;ImageVariant2" + $
"\nImageVariant3;ImageVariant3"
+ $"\nTest;Test",\
OptionsValueSeparator = ";",
Placeholder = "Select ImageVariants")]
public string ImageVariants { get; set; } = "Default";
Now in future it can be changed so i wanted to know if there is way to dynamically retrieve the image variants
Environment
Xperience by Kentico version: [30.5.3]
.NET version: [8]