BootstrapMvcHelpers.ButtonHelper.Render C# (CSharp) Метод

Render() публичный Метод

Renders this instance.
public Render ( ) : string
Результат string
        public string Render()
        {
            string cssClass = strategy.GetClassForStatus("btn");

            MenuItem item = new MenuItem(helper, text, action, controller, htmlAttributes, cssClass);
            return item.Render();
        }

Usage Example

        /// <summary>
        /// Renders a Twitter Bootstrap Button Component
        /// </summary>
        /// <param name="helper">The helper.</param>
        /// <param name="text">The text.</param>
        /// <param name="action">The action.</param>
        /// <param name="controller">The controller.</param>
        /// <param name="status">The status.</param>
        /// <param name="htmlAttributes">The HTML attributes.</param>
        /// <returns></returns>
        public static MvcHtmlString Button(this HtmlHelper helper, string text, string action, string controller = "", ButtonStatus status = ButtonStatus.Default, object htmlAttributes = null)
        {
            ButtonHelper button = new ButtonHelper(helper, GetStatusStrategy(status), text, action, controller, status, htmlAttributes);

            return(new MvcHtmlString(button.Render()));
        }
All Usage Examples Of BootstrapMvcHelpers.ButtonHelper::Render