BootstrapMvcHelpers.Bootstrap.MenuDropDown C# (CSharp) Метод

MenuDropDown() публичный статический Метод

Renders the menu drop down component.
public static MenuDropDown ( this helper, string name, IEnumerable selectList, string optionLabel = null, object htmlAttributes = null ) : System.Web.Mvc.MvcHtmlString
helper this The helper.
name string The name.
selectList IEnumerable The select list.
optionLabel string The option label.
htmlAttributes object The HTML attributes.
Результат System.Web.Mvc.MvcHtmlString
        public static MvcHtmlString MenuDropDown(this HtmlHelper helper, string name, IEnumerable<MenuItem> selectList, string optionLabel=null, object htmlAttributes=null)
        {
            DropDownHelper dropDownHelper = new DropDownHelper(helper, name, selectList, optionLabel, htmlAttributes);
            return new MvcHtmlString(dropDownHelper.Render());
        }