Exemplo n.º 1
0
        protected virtual IHtmlNode CreatePane(MobileSplitViewPane pane)
        {
            var dom = new HtmlElement("div")
                        .Attribute("id", pane.Id)
                        .Attribute("data-role", "pane")
                        .Attributes(pane.HtmlAttributes);

            if (pane.Content.HasValue())
            {
                pane.Content.Apply(dom);
            }

            foreach (var item in pane.ToJson())
            {
                dom.Attribute("data-" + item.Key, item.Value.ToString());
            }

            AddEventAttributes(dom, pane.Events);

            return dom;
        }
Exemplo n.º 2
0
        protected virtual IHtmlNode CreatePane(MobileSplitViewPane pane)
        {
            var dom = new HtmlElement("div")
                      .Attribute("id", pane.Id)
                      .Attribute("data-role", "pane")
                      .Attributes(pane.HtmlAttributes);

            if (pane.Content.HasValue())
            {
                pane.Content.Apply(dom);
            }

            foreach (var item in pane.ToJson())
            {
                dom.Attribute("data-" + item.Key, item.Value.ToString());
            }

            AddEventAttributes(dom, pane.Events);

            return(dom);
        }