Source

jqueryuihelpers /

Filename Size Date modified Message
JQueryUIHelpers
JQueryUIHelpers.Examples
JQueryUIHelpers.MVC4
JQueryUIHelpers.MVC4.Tests
JQueryUIHelpers.Tests
build
packages
119 B
2.6 KB
596 B
2.6 KB
1.3 KB

jQuery UI Helpers

A set of HTML Helpers which help you to seamlessly integrate jQuery UI into your ASP.NET MVC application. They have similar look and feel to the built in helpers, but also implement a fluent configuration API to fully utilize the power of jQuery UI. The helpers only generate HTML elements with data-* attributes and unobtrusive JavaScript is used to do the required initializations.

A simple example:

@Html.JQueryUI().DatepickerFor(m => m.DateOfBirth)

Another example with a bit more configuration:

@Html.JQueryUI().DatepickerFor(m => m.DateOfBirth).ChangeYear(true).ChangeMonth(true).MaxDate(DateTime.Today)

The library replaces complex string parameters with strongly typed arguments. For example when configuring the year drop-down list instead of 'c-20:2012' you can do this:

@(Html.JQueryUI().DatepickerFor(m => m.DateOfBirth)
.ChangeYear(new YearDefinition(-20, RelativeTo.SelectedYear), new YearDefinition(2012)))

jQuery UI Helpers is available on NuGet:

Install-Package jQueryUIHelpers.Mvc3

More documentation and demo is available on the project site.

Supported components:

  • Accordion
  • Autocomplete
  • Button
  • Datepicker
  • Dialog
  • Progressbar
  • Resizable
  • Sortable
  • Slider
  • Tabs
  • Theme switcher