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());
        }