public static ScriptFluentUI Ready(this IFluentUI ui, string callbackFormat, params object[] args) { var onReady = "$(function() {{ {0} }});".With(callbackFormat.With(args)); var child = ui.CreateChild(new ScriptFluentUI(onReady)); return((ScriptFluentUI)child); }
public static EventFluentUI Blur(this IFluentUI ui, string callbackFormat, params object[] args) { var child = ui.CreateChild(new EventFluentUI("blur")); child.UIData.Value = callbackFormat.With(args); return((EventFluentUI)child); }
public static ButtonFluentUI Button(this IFluentUI ui, string id) { return(ui.CreateChild(new ButtonFluentUI(id))); }
public static ScriptFluentUI Script(this IFluentUI ui, string code, params object[] codeArgs) { return(ui.CreateChild(new ScriptFluentUI(code.With(codeArgs)))); }
public static GridFluentUI Grid(this IFluentUI ui, string id, string name, string controller) { return(ui.CreateChild(new GridFluentUI(id, name, controller))); }
public static TextBoxFluentUI TextBox(this IFluentUI ui, string id, params object[] idArgs) { return(ui.CreateChild(GlobalConfiguration.Factory.Create <TextBoxFluentUI>(id.With(idArgs)))); }
public static TableFluentUI <TRow> Table <TRow>(this IFluentUI ui, string id, params object[] idArgs) { return(ui.CreateChild(new TableFluentUI <TRow> (id.With(idArgs)))); }
public static HiddenFluentUI Hidden(this IFluentUI ui, string id, params object[] idArgs) { return(ui.CreateChild(new HiddenFluentUI(id.With(idArgs)))); }
public static ImageFluentUI Image(this IFluentUI ui, string url) { return(ui.CreateChild(new ImageFluentUI(url))); }