InputDateTime
概要
機能
サンプル
説明
このサンプルは、InputDateTime コントロールの基本的な使用方法を示します。
ソース
IndexController.cs
using Microsoft.AspNetCore.Mvc; namespace MvcExplorer.Controllers { public partial class InputDateTimeController : Controller { public ActionResult Index() { return View(); } } }
Index.cshtml
@{ var today = DateTime.Now.Date; } <div> <label>@Html.Raw(InputDateTimeRes.Index_Text0)</label> <c1-input-date-time value="@today"> </c1-input-date-time> </div> @section Description{ @Html.Raw(InputDateTimeRes.Index_Text1) }
マニュアル