/// <summary>
        /// Renders this instance.
        /// </summary>
        /// <returns></returns>
        public string Render()
        {
            string cssClass = strategy.GetClassForStatus("btn");

            MenuItem item = new MenuItem(helper, text, action, controller, htmlAttributes, cssClass);

            return(item.Render());
        }
예제 #2
0
        /// <summary>
        /// Renders this instance.
        /// </summary>
        /// <returns></returns>
        public string Render()
        {
            string cssClass = strategy.GetClassForStatus("label");

            var builder = new TagBuilder("span");

            builder.MergeAttributes(new RouteValueDictionary(htmlAttributes));
            builder.AddCssClass(cssClass);
            builder.SetInnerText(text);
            return(builder.ToString(TagRenderMode.Normal));
        }