public UISection AddImageTextValue(string src, string text, String value, Web.UIClick click) { var cell = UICell.Create("ImageTextValue", new UMC.Web.WebMeta().Put("src", src, "value", value, "text", text).Put("click", click)); this.Add(cell); return(this); }
public UISection AddNumberCell(string text, String value, string title, Web.UIClick submit) { var cell = UICell.Create("NumberCell", new UMC.Web.WebMeta().Put("text", text, "value", value, "title", title).Put("submit", submit)); this.Add(cell); return(this); }
public UIDataSource(ICollection data, UICell cell) { _data["data"] = data; _data["cell"] = cell.Type; _style.Copy(cell.Style); this.Format(cell.Format); }
public UISection AddImageTextValue(string src, String value, int imageWidth, Web.UIClick click) { var cell = UICell.Create("ImageTextValue", new UMC.Web.WebMeta().Put("src", src, "value", value).Put("click", click)); cell.Style.Name("image-width", imageWidth); this.Add(cell); return(this); }
public UIDataSource(System.Data.DataTable data, UICell cell) { _data["data"] = data; _data["cell"] = cell.Type; _style.Copy(cell.Style); this.Format(cell.Format); }
public UIDataSource(string model, string cmd, UICell cell) { if (String.IsNullOrEmpty(model) == false && String.IsNullOrEmpty(cmd) == false) { _data["model"] = model; _data["cmd"] = cmd; } _data["cell"] = cell.Type; _style.Copy(cell.Style); this.Format(cell.Format); }
public Editer Put(UICell value, bool reloadSinge) { if (reloadSinge) { webMeta.Put("value", new WebMeta().Cell(value)).Put("method", "PUT").Put("reloadSinle", true); } else { webMeta.Put("value", new WebMeta().Cell(value)).Put("method", "PUT");//.Put("reloadSinle", true); } return(this); }
public UIDataSource(string model, string cmd, WebMeta search, UICell cell) { if (String.IsNullOrEmpty(model) == false && String.IsNullOrEmpty(cmd) == false) { _data["model"] = model; _data["cmd"] = cmd; } _data["cell"] = cell.Type; _style.Copy(cell.Style); this.Format(cell.Format); if (search != null && search.Count > 0) { _data["search"] = search; } }
public UISection Delete(UICell cell, UIEventText eventText) { data.Add(new WebMeta().Put("del", eventText).Put("_CellName", cell.Type).Put("value", cell.Data).Put("format", cell.Format).Put("style", cell.Style)); return(this); }
public UISection Add(UICell cell) { data.Add(cell);// new WebMeta().Put("_CellName", cell.Type).Put("value", cell.Data).Put("format", cell.Format).Put("style", cell.Style)); return(this); }
public UISection AddCell(char icon, String text, String value, UIClick click) { return(this.Add(UICell.Create("UI", new WebMeta().Put("value", value, "text", text).Put("Icon", icon).Put("click", click)))); }
public UISection AddCell(String text, String value) { return(this.Add(UICell.Create("Cell", new WebMeta().Put("value", value, "text", text)))); }
public UISection AddCell(String text, UIClick click) { return(this.Add(UICell.Create("Cell", new WebMeta().Put("text", text).Put("click", click)))); }
public static UICell Create(params UISlider[] sliders) { return(UICell.Create("Slider", new WebMeta().Put("data", sliders))); }
public Editer Append(UICell value) { webMeta.Put("value", new WebMeta().Cell(value)).Put("method", "APPEND"); return(this); }
public Editer Insert(UICell value) { webMeta.Put("value", new WebMeta().Cell(value)).Put("method", "INSERT"); return(this); }
public void Add(UICell cell) { this.dataSrouce.Add(new WebMeta().Put("Type", cell.Type).Put("value", cell.Data).Put("format", cell.Format).Put("style", cell.Style)); }