DatePickerHTMLHelper 1.1.2
See the version list below for details.
dotnet add package DatePickerHTMLHelper --version 1.1.2
NuGet\Install-Package DatePickerHTMLHelper -Version 1.1.2
<PackageReference Include="DatePickerHTMLHelper" Version="1.1.2" />
paket add DatePickerHTMLHelper --version 1.1.2
#r "nuget: DatePickerHTMLHelper, 1.1.2"
// Install DatePickerHTMLHelper as a Cake Addin #addin nuget:?package=DatePickerHTMLHelper&version=1.1.2 // Install DatePickerHTMLHelper as a Cake Tool #tool nuget:?package=DatePickerHTMLHelper&version=1.1.2
This package will install a MVC's HTML Helper for Bootstrap DatePickers, fully functional with DateTime fields from Models and easy to use, to use in with Bootstrap and Bootstrap.DatePicker's packages.
Usage on the View:
@Html.DatePickerFor(model => model.Date)
If you want to set Data API custom attributes, according to Bootstrap's Data API for DatePickers, you can set optionally in strings, separated by the = character, as below:
@Html.DatePickerFor(model => model.Date, "autoclose=true", "todayBtn=true", "todayHighlight=true")
Learn more about Target Frameworks and .NET Standard.
-
- bootstrap (>= 3.1.1)
- Bootstrap.Datepicker (>= 1.3.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
This version will support only a very simple text input and the date calendar, without the component, Embedded/inline or Range types from Bootstrap.Datepicker's NuGet package.