public static pluginConfig GePluginConfig(string plugin) { pluginConfig pluginConfig = null; switch (plugin.ToLower()) { case "datepicker": pluginConfig = new pluginConfig() { format = "yyyy/mm/dd", todayBtn = "linked", todayHighlight = true, autoclose = true }; break; default: pluginConfig = null; break; } return(pluginConfig); }
public QueryBuilderFilter(string id, string label, QueryBuilderDataType type, QueryBuilderInputType input, Dictionary <string, string> values, string plugin, pluginConfig conFigPlugin) { this.id = id; this.label = label; this.type = type.ToString(); // this.operators = ops; this.input = input.ToString(); this.values = values; this.plugin = plugin; this.pluginConfig = conFigPlugin; }