ToolbarExtensions.cs 584 B

12345678910111213141516171819
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Web.Mvc;
  6. using Bowin.Web.Controls.Mvc;
  7. namespace System.Web.Mvc
  8. {
  9. public static class ToolbarExtensions
  10. {
  11. public static MvcHtmlString Toolbar(this HtmlHelper htmlHelper,
  12. ToolbarOptions toolbarOptions,
  13. System.Collections.Generic.IDictionary<string, string> htmlAttributes = null)
  14. {
  15. return MvcHtmlString.Create(Bowin.Web.Controls.Mvc.Toolbar.CreateControl(toolbarOptions, htmlAttributes).Render());
  16. }
  17. }
  18. }