예제 #1
0
        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);
        }
예제 #2
0
        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)));
 }
예제 #4
0
 public static ScriptFluentUI Script(this IFluentUI ui, string code, params object[] codeArgs)
 {
     return(ui.CreateChild(new ScriptFluentUI(code.With(codeArgs))));
 }
예제 #5
0
 public static GridFluentUI Grid(this IFluentUI ui, string id, string name, string controller)
 {
     return(ui.CreateChild(new GridFluentUI(id, name, controller)));
 }
예제 #6
0
 public static TextBoxFluentUI TextBox(this IFluentUI ui, string id, params object[] idArgs)
 {
     return(ui.CreateChild(GlobalConfiguration.Factory.Create <TextBoxFluentUI>(id.With(idArgs))));
 }
예제 #7
0
 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))));
 }
예제 #9
0
 public static ImageFluentUI Image(this IFluentUI ui, string url)
 {
     return(ui.CreateChild(new ImageFluentUI(url)));
 }