Beispiel #1
0
        public static DivElement CreatePanel()
        {
            var panel = new DivElement
            {
                ClassName = "panel panel-default"
            };

            var header = Html5App.CreatePanelHeader();
            var body   = Html5App.CreatePanelBody();
            var footer = Html5App.CreatePanelFooter();

            panel.AppendChild(header);
            panel.AppendChild(body);
            panel.AppendChild(footer);

            return(panel);
        }
Beispiel #2
0
        public static void Main()
        {
            Document.Body.Style.Padding = "20px";

            var form = new FormElement
            {
                ClassName = "col-md-6"
            };

            var panel = Html5App.CreatePanel();

            form.AppendChild(panel);

            Document.Body.AppendChild(form);

            UpdateButton_Click(null);
        }
Beispiel #3
0
        public static DivElement CreatePanelBody()
        {
            var body = new DivElement
            {
                ClassName = "panel-body"
            };

            var name    = Html5App.CreateFormField("Name", "user");
            var email   = Html5App.CreateFormField("Email", "globe");
            var message = Html5App.CreateFormField("Message", "pencil");

            Element[] dateTime = Html5App.CreateDateTimeField();

            body.AppendChild(name);
            body.AppendChild(email);
            body.AppendChild(message);
            body.AppendChild(dateTime[0]);
            body.AppendChild(dateTime[1]);

            return(body);
        }