public PcFieldBaseOptions InitPcFieldBaseOptions(PageComponentContext context) { var options = new PcFieldBaseOptions(); //Check if it is defined in form group if (context.Items.ContainsKey(typeof(LabelRenderMode))) { options.LabelMode = (LabelRenderMode)context.Items[typeof(LabelRenderMode)]; } else { options.LabelMode = LabelRenderMode.Stacked; } //Check if it is defined in form group if (context.Items.ContainsKey(typeof(FieldRenderMode))) { options.Mode = (FieldRenderMode)context.Items[typeof(FieldRenderMode)]; } else { options.Mode = FieldRenderMode.Form; } return(options); }
public static PcFieldTextOptions CopyFromBaseOptions(PcFieldBaseOptions input) { return(new PcFieldTextOptions { LabelMode = input.LabelMode, LabelText = input.LabelText, Mode = input.Mode, Name = input.Name, MaxLength = null }); }
public static PcFieldDateTimeOptions CopyFromBaseOptions(PcFieldBaseOptions input) { return(new PcFieldDateTimeOptions { LabelMode = input.LabelMode, LabelText = input.LabelText, Mode = input.Mode, Name = input.Name }); }
public static PcFieldFileOptions CopyFromBaseOptions(PcFieldBaseOptions input) { return(new PcFieldFileOptions { LabelMode = input.LabelMode, LabelText = input.LabelText, Mode = input.Mode, Name = input.Name, Accept = "" }); }
public static PcFieldUrlOptions CopyFromBaseOptions(PcFieldBaseOptions input) { return(new PcFieldUrlOptions { IsVisible = input.IsVisible, LabelMode = input.LabelMode, LabelText = input.LabelText, Mode = input.Mode, Name = input.Name }); }
public static PcFieldTextareaOptions CopyFromBaseOptions(PcFieldBaseOptions input) { return(new PcFieldTextareaOptions { LabelMode = input.LabelMode, LabelText = input.LabelText, Mode = input.Mode, Name = input.Name, Height = "" }); }
public static PcFieldRadioListOptions CopyFromBaseOptions(PcFieldBaseOptions input) { return(new PcFieldRadioListOptions { LabelMode = input.LabelMode, LabelText = input.LabelText, Mode = input.Mode, Name = input.Name, Options = "" }); }
public static PcFieldAutonumberOptions CopyFromBaseOptions(PcFieldBaseOptions input) { return(new PcFieldAutonumberOptions { LabelMode = input.LabelMode, LabelText = input.LabelText, Mode = input.Mode, Name = input.Name, Template = input.Template }); }
public static PcFieldPasswordOptions CopyFromBaseOptions(PcFieldBaseOptions input) { return(new PcFieldPasswordOptions { LabelMode = input.LabelMode, LabelText = input.LabelText, Mode = input.Mode, Name = input.Name, Min = null, Max = null }); }
public static PcFieldCheckboxListOptions CopyFromBaseOptions(PcFieldBaseOptions input) { return(new PcFieldCheckboxListOptions { IsVisible = input.IsVisible, LabelMode = input.LabelMode, LabelText = input.LabelText, Mode = input.Mode, Name = input.Name, Options = "" }); }
public static PcFieldCheckboxOptions CopyFromBaseOptions(PcFieldBaseOptions input) { return(new PcFieldCheckboxOptions { LabelMode = input.LabelMode, LabelText = input.LabelText, Mode = input.Mode, Name = input.Name, TextTrue = "", TextFalse = "" }); }
public static PcFieldMultiFileUploadOptions CopyFromBaseOptions(PcFieldBaseOptions input) { return(new PcFieldMultiFileUploadOptions { IsVisible = input.IsVisible, LabelMode = input.LabelMode, LabelText = input.LabelText, Mode = input.Mode, Name = input.Name, Accept = "" }); }
public static PcFieldPhoneOptions CopyFromBaseOptions(PcFieldBaseOptions input) { return(new PcFieldPhoneOptions { IsVisible = input.IsVisible, LabelMode = input.LabelMode, LabelText = input.LabelText, Mode = input.Mode, Name = input.Name, MaxLength = input.MaxLength }); }
public static PcFieldHtmlOptions CopyFromBaseOptions(PcFieldBaseOptions input) { return(new PcFieldHtmlOptions { LabelMode = input.LabelMode, LabelText = input.LabelText, Mode = input.Mode, Name = input.Name, UploadMode = HtmlUploadMode.None, ToolbarMode = HtmlToolbarMode.Basic }); }
public static PcFieldCodeOptions CopyFromBaseOptions(PcFieldBaseOptions input) { return(new PcFieldCodeOptions { LabelMode = input.LabelMode, LabelText = input.LabelText, Mode = input.Mode, Name = input.Name, Height = "120px", Language = "razor", Theme = "cobalt" }); }
public static PcFieldTimeOptions CopyFromBaseOptions(PcFieldBaseOptions input) { return(new PcFieldTimeOptions { IsVisible = input.IsVisible, LabelMode = input.LabelMode, LabelText = input.LabelText, Mode = input.Mode, Name = input.Name, Description = input.Description, LabelHelpText = input.LabelHelpText }); }
public static PcFieldPasswordOptions CopyFromBaseOptions(PcFieldBaseOptions input) { return(new PcFieldPasswordOptions { IsVisible = input.IsVisible, LabelMode = input.LabelMode, LabelText = input.LabelText, Mode = input.Mode, Name = input.Name, Min = (int?)input.Min, Max = (int?)input.Max }); }
public static PcFieldSelectOptions CopyFromBaseOptions(PcFieldBaseOptions input) { return(new PcFieldSelectOptions { IsVisible = input.IsVisible, LabelMode = input.LabelMode, LabelText = input.LabelText, Mode = input.Mode, Name = input.Name, Options = "", AjaxDatasource = null }); }
public static PcFieldCheckboxGridOptions CopyFromBaseOptions(PcFieldBaseOptions input) { return new PcFieldCheckboxGridOptions { IsVisible = input.IsVisible, LabelMode = input.LabelMode, LabelText = input.LabelText, Mode = input.Mode, Name = input.Name, TextTrue = "", TextFalse = "" }; }
public static PcFieldMultiSelectOptions CopyFromBaseOptions(PcFieldBaseOptions input) { return(new PcFieldMultiSelectOptions { IsVisible = input.IsVisible, LabelMode = input.LabelMode, LabelText = input.LabelText, Mode = input.Mode, Name = input.Name, Options = "", AjaxDatasource = null, SelectMatchingType = WvSelectMatchType.Contains }); }
public static PcFieldNumberOptions CopyFromBaseOptions(PcFieldBaseOptions input) { return(new PcFieldNumberOptions { LabelMode = input.LabelMode, LabelText = input.LabelText, Mode = input.Mode, Name = input.Name, Min = input.Min, Max = input.Max, Step = null, DecimalDigits = input.DecimalDigits }); }
public static PcFieldCurrencyOptions CopyFromBaseOptions(PcFieldBaseOptions input) { return(new PcFieldCurrencyOptions { LabelMode = input.LabelMode, LabelText = input.LabelText, Mode = input.Mode, Name = input.Name, Min = null, Max = null, Step = null, CurrencyCode = "USD" }); }
public static PcFieldPercentOptions CopyFromBaseOptions(PcFieldBaseOptions input) { return(new PcFieldPercentOptions { LabelMode = input.LabelMode, LabelText = input.LabelText, Mode = input.Mode, Name = input.Name, Min = null, Max = null, Step = null, DecimalDigits = 2 }); }
public static PcFieldHtmlOptions CopyFromBaseOptions(PcFieldBaseOptions input) { return(new PcFieldHtmlOptions { IsVisible = input.IsVisible, LabelMode = input.LabelMode, LabelText = input.LabelText, Mode = input.Mode, Name = input.Name, UploadMode = HtmlUploadMode.None, ToolbarMode = HtmlToolbarMode.Basic, Description = input.Description, LabelHelpText = input.LabelHelpText }); }
public static PcFieldCurrencyOptions CopyFromBaseOptions(PcFieldBaseOptions input) { return(new PcFieldCurrencyOptions { IsVisible = input.IsVisible, LabelMode = input.LabelMode, LabelText = input.LabelText, Mode = input.Mode, Name = input.Name, Min = input.Min, Max = input.Max, Step = null, CurrencyCode = input.CurrencyCode }); }
public static PcFieldCheckboxOptions CopyFromBaseOptions(PcFieldBaseOptions input) { return(new PcFieldCheckboxOptions { IsVisible = input.IsVisible, LabelMode = input.LabelMode, LabelText = input.LabelText, Mode = input.Mode, Name = input.Name, TextTrue = "", TextFalse = "", Description = input.Description, LabelHelpText = input.LabelHelpText }); }
public static PcFieldImageOptions CopyFromBaseOptions(PcFieldBaseOptions input) { return(new PcFieldImageOptions { LabelMode = input.LabelMode, LabelText = input.LabelText, Mode = input.Mode, Name = input.Name, TextRemove = "remove", TextSelect = "select", Accept = "", Width = null, Height = null, ResizeAction = ImageResizeMode.Pad }); }
public static PcFieldPercentOptions CopyFromBaseOptions(PcFieldBaseOptions input) { return(new PcFieldPercentOptions { IsVisible = input.IsVisible, LabelMode = input.LabelMode, LabelText = input.LabelText, Mode = input.Mode, Name = input.Name, Min = input.Min, Max = input.Max, Step = null, DecimalDigits = input.DecimalDigits, Description = input.Description, LabelHelpText = input.LabelHelpText }); }
public static PcFieldDataCsvOptions CopyFromBaseOptions(PcFieldBaseOptions input) { return(new PcFieldDataCsvOptions { IsVisible = input.IsVisible, LabelMode = input.LabelMode, LabelText = input.LabelText, Mode = input.Mode, Name = input.Name, Height = "", DelimiterValueDs = "", HasHeaderValueDs = "", DelimiterFieldName = "", HasHeaderFieldName = "", LangDs = "en", }); }
public static PcFieldMultiFileUploadOptions CopyFromBaseOptions(PcFieldBaseOptions input) { return(new PcFieldMultiFileUploadOptions { IsVisible = input.IsVisible, LabelMode = input.LabelMode, LabelText = input.LabelText, Mode = input.Mode, Name = input.Name, Accept = "", GetHandlerPrefix = "/fs", FileUploadApi = "/fs/upload-file-multiple", PathPropName = "path", SizePropName = "size", NamePropName = "name", IconPropName = "icon", TimestampPropName = "timestamp", AuthorPropName = "author" }); }