/// <summary> /// Create UXRow /// </summary> /// <param name="data">data hash</param> /// <param name="ui">ui properties</param> /// <returns>row</returns> public static UXCell CreateUXCell(Marshalling.MarshallingHash data, Marshalling.MarshallingHash ui) { UXCell cell = new UXCell(); cell.Bind(data); cell.Bind(ui); return(cell); }
/// <summary> /// Create a cell /// </summary> /// <param name="properties">props</param> /// <param name="controls">controls</param> /// <returns>ux cell</returns> public static UXCell CreateCell(Marshalling.MarshallingHash properties, params UXControl[] controls) { UXCell cell = UXCell.CreateUXCell("cell", () => { return(new Dictionary <string, dynamic>() { { "children", UXFramework.Creation.CreateChildren(controls) } }); }); if (properties != null) { cell.Bind(properties); } return(cell); }