Mvc Gumby Form Helper Extensions

Assembly
WebExtras.Mvc.dll
Namespace
WebExtras.Mvc.Gumby
Dependancies
  • Appropriate third party libraries
  • webextras.gumby.css

Creating special buttons

Special buttons can be created by decorating hyperlinks and basic buttons with the appropriate special button type

Markup


  @Html.Hyperlink("Take me to google", "http://www.google.com")
    .AsButton(EGumbyButton.Default)
  @Html.Button(EButton.Regular, "Take me to google", "window.location='http://www.google.com.au'")
    .AsButton(EGumbyButton.Info, EGumbyButtonStyle.Large)
  

Output

All available extensions


  // Note that this extension can only be used for hyperlinks and button elements
  .AsButton(type)
  .AsButton(type, size/style)