Exemplo n.º 1
0
        public Panel GetView()
        {
            var model = new PracownikTest();

            model.Imie     = "Jan";
            model.Nazwisko = "Kowalski";

            var html = new WidgetFactory();
            var ac   = html.AutoComplete()
                       .DataSource(source =>
                                   source.Read(a => a.ToString())
                                   );
            var panel = html.Panel <PracownikTest>();

            panel.HtmlAttributes("style", "height:400px; width:400px; background-color:red;");
            panel.AddItem(panels =>
            {
                panels.Class("p1");
            });
            panel.AddItem(panels =>
            {
                panels.Class("p2");
            });
            panel.Items(p =>
            {
                p.Add().AddItem(pp => pp.Class("p4")).Class("p3");
            });

            var tb = html.TextBox <string>();

            panel.AddItem(tb.ToComponent());
            return(panel.ToComponent());
        }
Exemplo n.º 2
0
 public void TestMethod1()
 {
     var html = new WidgetFactory();
     var ac   = html.AutoComplete()
                .DataSource(source =>
                            source.Read(a => a.ToString())
                            );
     var panel = html.Panel();
 }