Esempio n. 1
0
        protected virtual IHtmlNode CreateItem(MobileActionSheetItem item)
        {
            var dom = new HtmlElement("li");

            dom.Children.Add(new HtmlElement("a")
                        .Text(item.Text)
                        .Attributes(item.HtmlAttributes)
                        .Attribute("href", "#")
                        .Attribute("data-action", item.Action));

            return dom;
        }
Esempio n. 2
0
        protected virtual IHtmlNode CreateItem(MobileActionSheetItem item)
        {
            var dom = new HtmlElement("li");

            dom.Children.Add(new HtmlElement("a")
                             .Text(item.Text)
                             .Attributes(item.HtmlAttributes)
                             .Attribute("href", "#")
                             .Attribute("data-action", item.Action));

            return(dom);
        }