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()) { if (item.Value.GetType() == typeof(bool)) { dom.Attribute("data-" + item.Key, item.Value.ToString().ToLower()); } else { dom.Attribute("data-" + item.Key, item.Value.ToString()); } } AddEventAttributes(dom, pane.Events); return dom; }
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()) { if (item.Value.GetType() == typeof(bool)) { dom.Attribute("data-" + item.Key, item.Value.ToString().ToLower()); } else { dom.Attribute("data-" + item.Key, item.Value.ToString()); } } AddEventAttributes(dom, pane.Events); return(dom); }