MvcExtraControls.ListEditor
1.0.1
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package MvcExtraControls.ListEditor --version 1.0.1
NuGet\Install-Package MvcExtraControls.ListEditor -Version 1.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MvcExtraControls.ListEditor" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MvcExtraControls.ListEditor --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MvcExtraControls.ListEditor, 1.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install MvcExtraControls.ListEditor as a Cake Addin
#addin nuget:?package=MvcExtraControls.ListEditor&version=1.0.1
// Install MvcExtraControls.ListEditor as a Cake Tool
#tool nuget:?package=MvcExtraControls.ListEditor&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ListEditorFor method creates an editor to add, remove and change elements in a list on the view model with full binding.
Example usage
Model:
[Bind(Include = "StringList")]
public class ViewModel
{
public List<string> StringList { get; set; }
}
View:
@using MvcExtraControls.Library;
<html>
<head>
<script src="/Scripts/ListEditor.js"></script>
<link href="~/Content/ListEditor.css" rel="stylesheet" />
</head>
<body>
@Html.ListEditorFor(m => m.StringList)
</body>
</html>
Controller:
public ActionResult Index()
{
var model = new ViewModel()
{
StringList = new List<string> { "One", "Two", "Three" }
};
return View(model);
}
Result:
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net46 is compatible. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
- Microsoft.AspNet.Mvc (>= 5.2.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.