Hi all,
How to define values for DropDownComponent ? I mean case when I use implementation of IWidgetProperties and try to set DropDownComponent as identifier in attribute EditingComponent. I've tried to use EditingComponentProperty("Items", somevalue) but it's not possible because second argument is object and there is restriction of C# language.
public class SomeWidgetProperties : IWidgetProperties { [EditingComponent(DropDownComponent.IDENTIFIER, Order = 0, Label = "Some")] [EditingComponentProperty("Items",new SelectListItem())] public string SomeValue { get; set; } }
Thanks Drazen! One little correction : you should use property DataSource instead Items. That code below works fine
[EditingComponentProperty("DataSource", "light;Light\r\ndark;Dark")]
Please try something like this:
[EditingComponentProperty("Items", "light;Light\r\ndark;Dark")]
Yeah I didn't pay attention, just focused on the items themselves :-)
Are we able to have a path selector for an input component? What would the syntax for it be?
Please, sign in to be able to submit a new answer.