예제 #1
0
        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);
        }
예제 #2
0
        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;
        }