protected override Control AddEditor(Control container) { FileSelector selector = new FileSelector(); selector.SelectableExtensions = FileSelector.ImageExtensions; selector.ID = Name; selector.Placeholder(GetLocalizedText("Placeholder") ?? Placeholder); container.Controls.Add(selector); return(selector); }
protected override Control AddEditor(Control container) { FileSelector selector = new FileSelector(); selector.SelectableTypes = typeof(IFileSystemDirectory).Name; selector.ID = Name; selector.Placeholder(GetLocalizedText("Placeholder") ?? Placeholder); container.Controls.Add(selector); return(selector); }
protected override Control AddEditor(Control container) { var selector = new FileSelector(); selector.SelectableExtensions = FileSelector.ImageExtensions; selector.ID = Name; selector.Placeholder(GetLocalizedText("Placeholder") ?? Placeholder); if (ReadOnly) { selector.Attributes["readonly"] = "readonly"; } container.Controls.Add(selector); return(selector); }