protected virtual IHtmlNode CreateItem(MobileButtonGroupItem item) { var dom = new HtmlElement("li") .Attributes(item.HtmlAttributes) .Text(item.Text); foreach (var keyValuePair in item.ToJson()) { dom.Attribute("data-" + keyValuePair.Key, keyValuePair.Value.ToString()); } return(dom); }
protected virtual IHtmlNode CreateItem(MobileButtonGroupItem item) { var dom = new HtmlElement("li") .Attributes(item.HtmlAttributes) .Text(item.Text); foreach (var keyValuePair in item.ToJson()) { dom.Attribute("data-" + keyValuePair.Key, keyValuePair.Value.ToString()); } return dom; }