Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
        internal static TChild CreateChild <TChild> (this IFluentUI parent, TChild child) where TChild : IFluentUI
        {
            var creatorParent = parent as FluentUIBase;
            var creatorChild  = child as FluentUIBase;

            creatorParent.Children.Add(creatorChild);
            creatorChild.Parent = creatorParent;

            return(child);
        }
 public static ButtonFluentUI Button(this IFluentUI ui, string id)
 {
     return(ui.CreateChild(new ButtonFluentUI(id)));
 }
Exemplo n.º 5
0
 public static ScriptFluentUI Script(this IFluentUI ui, string code, params object[] codeArgs)
 {
     return(ui.CreateChild(new ScriptFluentUI(code.With(codeArgs))));
 }
Exemplo n.º 6
0
 public static GridFluentUI Grid(this IFluentUI ui, string id, string name, string controller)
 {
     return(ui.CreateChild(new GridFluentUI(id, name, controller)));
 }
Exemplo n.º 7
0
 public static TextBoxFluentUI TextBox(this IFluentUI ui, string id, params object[] idArgs)
 {
     return(ui.CreateChild(GlobalConfiguration.Factory.Create <TextBoxFluentUI>(id.With(idArgs))));
 }
Exemplo n.º 8
0
 public static TableFluentUI <TRow> Table <TRow>(this IFluentUI ui, string id, params object[] idArgs)
 {
     return(ui.CreateChild(new TableFluentUI <TRow> (id.With(idArgs))));
 }
Exemplo n.º 9
0
 public void Render(IFluentUI ui)
 {
     m_ui = ui;
 }
Exemplo n.º 10
0
 public static HiddenFluentUI Hidden(this IFluentUI ui, string id, params object[] idArgs)
 {
     return(ui.CreateChild(new HiddenFluentUI(id.With(idArgs))));
 }
Exemplo n.º 11
0
 public static ImageFluentUI Image(this IFluentUI ui, string url)
 {
     return(ui.CreateChild(new ImageFluentUI(url)));
 }