#pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            DefineSection("MetaTags", async() => {
                BeginContext(18, 203, true);
                WriteLiteral("\r\n   <meta name=\"description\" content=\"This example demonstrates how to enable the time merdian support in dateTimePicker by using the properties like interval, meridian and enable in a ASP.NET Core \">\r\n");
                EndContext();
            }
                          );
            BeginContext(224, 2, true);
            WriteLiteral("\r\n");
            EndContext();
            DefineSection("ScriptReferenceSection", async() => {
                BeginContext(258, 13, true);
                WriteLiteral("\r\n    <script");
                EndContext();
                BeginWriteAttribute("src", " src=\"", 271, "\"", 335, 1);
#line 6 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\DateTimePicker\Meridian.cshtml"
                WriteAttributeValue("", 277, Url.Content("~/Scripts/cultures/ej.culture.en-US.min.js"), 277, 58, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(336, 12, true);
                WriteLiteral("></script>\r\n");
                EndContext();
            }
                          );
            DefineSection("SampleHeading", async() => {
                BeginContext(374, 58, true);
                WriteLiteral("<span class=\"sampleName\">DateTimePicker / Meridian</span> ");
                EndContext();
            }
                          );
            DefineSection("ControlsSection", async() => {
                BeginContext(460, 70, true);
                WriteLiteral("\r\n    <div class=\"frame\">\r\n        <div class=\"control\">\r\n            ");
                EndContext();
                BeginContext(530, 182, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-date-time-picker", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "573390d23dce43c0a6987584cce8ff0a", async() => {
                    BeginContext(588, 18, true);
                    WriteLiteral("\r\n                ");
                    EndContext();
                    BeginContext(606, 70, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-time-drill-down", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "555394e0a30e41ea9bc9f42e421edbe0", async() => {
                    }
                                                                                );
                    __Syncfusion_JavaScript_Models_TimeDrillDown = CreateTagHelper <global::Syncfusion.JavaScript.Models.TimeDrillDown>();
                    __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_TimeDrillDown);
#line 13 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\DateTimePicker\Meridian.cshtml"
                    __Syncfusion_JavaScript_Models_TimeDrillDown.Enabled = true;

#line default
#line hidden
                    __tagHelperExecutionContext.AddTagHelperAttribute("enabled", __Syncfusion_JavaScript_Models_TimeDrillDown.Enabled, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 13 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\DateTimePicker\Meridian.cshtml"
                    __Syncfusion_JavaScript_Models_TimeDrillDown.Interval = 5;

#line default
#line hidden
                    __tagHelperExecutionContext.AddTagHelperAttribute("interval", __Syncfusion_JavaScript_Models_TimeDrillDown.Interval, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 13 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\DateTimePicker\Meridian.cshtml"
                    __Syncfusion_JavaScript_Models_TimeDrillDown.ShowMeridian = true;

#line default
#line hidden
                    __tagHelperExecutionContext.AddTagHelperAttribute("show-meridian", __Syncfusion_JavaScript_Models_TimeDrillDown.ShowMeridian, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                    await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                    if (!__tagHelperExecutionContext.Output.IsContentModified)
                    {
                        await __tagHelperExecutionContext.SetOutputContentAsync();
                    }
                    Write(__tagHelperExecutionContext.Output);
                    __tagHelperExecutionContext = __tagHelperScopeManager.End();
                    EndContext();
                    BeginContext(676, 14, true);
                    WriteLiteral("\r\n            ");
                    EndContext();
                }
                                                                            );
                __Syncfusion_JavaScript_Models_DateTimePickerProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.DateTimePickerProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_DateTimePickerProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
#line 12 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\DateTimePicker\Meridian.cshtml"
                __Syncfusion_JavaScript_Models_DateTimePickerProperties.Value = DateTime.Now;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("value", __Syncfusion_JavaScript_Models_DateTimePickerProperties.Value, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(712, 30, true);
                WriteLiteral("\r\n        </div>\r\n    </div>\r\n");
                EndContext();
            }
                          );
            DefineSection("StyleSection", async() => {
                BeginContext(767, 164, true);
                WriteLiteral("\r\n    <style>\r\n        .control {\r\n            width: 210px;\r\n        }\r\n\r\n        .control .e-datetime-wrap {\r\n            width: 175px;\r\n        }\r\n    </style>\r\n");
                EndContext();
            }
                          );
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            DefineSection("MetaTags", async() => {
                BeginContext(18, 121, true);
                WriteLiteral("\r\n   <meta name=\"description\" content=\"This example demonstrates how to localize the datetimepicker in a ASP.NET Core\">\r\n");
                EndContext();
            }
                          );
            BeginContext(142, 2, true);
            WriteLiteral("\r\n");
            EndContext();
            DefineSection("ScriptReferenceSection", async() => {
                BeginContext(176, 13, true);
                WriteLiteral("\r\n    <script");
                EndContext();
                BeginWriteAttribute("src", " src=\"", 189, "\"", 253, 1);
#line 6 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\DateTimePicker\Localization.cshtml"
                WriteAttributeValue("", 195, Url.Content("~/Scripts/cultures/ej.culture.en-US.min.js"), 195, 58, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(254, 23, true);
                WriteLiteral("></script>\r\n    <script");
                EndContext();
                BeginWriteAttribute("src", " src=\"", 277, "\"", 341, 1);
#line 7 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\DateTimePicker\Localization.cshtml"
                WriteAttributeValue("", 283, Url.Content("~/Scripts/cultures/ej.culture.de-DE.min.js"), 283, 58, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(342, 23, true);
                WriteLiteral("></script>\r\n    <script");
                EndContext();
                BeginWriteAttribute("src", " src=\"", 365, "\"", 429, 1);
#line 8 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\DateTimePicker\Localization.cshtml"
                WriteAttributeValue("", 371, Url.Content("~/Scripts/cultures/ej.culture.fr-FR.min.js"), 371, 58, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(430, 23, true);
                WriteLiteral("></script>\r\n    <script");
                EndContext();
                BeginWriteAttribute("src", " src=\"", 453, "\"", 517, 1);
#line 9 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\DateTimePicker\Localization.cshtml"
                WriteAttributeValue("", 459, Url.Content("~/Scripts/cultures/ej.culture.vi-VN.min.js"), 459, 58, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(518, 23, true);
                WriteLiteral("></script>\r\n    <script");
                EndContext();
                BeginWriteAttribute("src", " src=\"", 541, "\"", 605, 1);
#line 10 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\DateTimePicker\Localization.cshtml"
                WriteAttributeValue("", 547, Url.Content("~/Scripts/cultures/ej.culture.zh-CN.min.js"), 547, 58, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(606, 12, true);
                WriteLiteral("></script>\r\n");
                EndContext();
            }
                          );
            DefineSection("SampleHeading", async() => {
                BeginContext(644, 62, true);
                WriteLiteral("<span class=\"sampleName\">DateTimePicker / Localization </span>");
                EndContext();
            }
                          );
            DefineSection("ControlsSection", async() => {
                BeginContext(734, 70, true);
                WriteLiteral("\r\n    <div class=\"frame\">\r\n        <div class=\"control\">\r\n            ");
                EndContext();
                BeginContext(804, 108, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-date-time-picker", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "fd950b095897407bbafa762e49133e53", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_DateTimePickerProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.DateTimePickerProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_DateTimePickerProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
#line 16 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\DateTimePicker\Localization.cshtml"
                __Syncfusion_JavaScript_Models_DateTimePickerProperties.Value = DateTime.Now;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("value", __Syncfusion_JavaScript_Models_DateTimePickerProperties.Value, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                __Syncfusion_JavaScript_Models_DateTimePickerProperties.Locale = (string)__tagHelperAttribute_1.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
                __Syncfusion_JavaScript_Models_DateTimePickerProperties.Width = (string)__tagHelperAttribute_2.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(912, 30, true);
                WriteLiteral("\r\n        </div>\r\n    </div>\r\n");
                EndContext();
            }
                          );
            BeginContext(945, 121, true);
            WriteLiteral("<div id=\"culture\">\r\n    <ul>\r\n        <li>en-US</li>\r\n        <li>vi-VN</li>\r\n        <li>zh-CN</li>\r\n    </ul>\r\n</div>\r\n");
            EndContext();
            DefineSection("PropertiesSection", async() => {
                BeginContext(1093, 145, true);
                WriteLiteral("\r\n    <div class=\"row\">\r\n        <div class=\"col-md-3\">\r\n            Select Culture\r\n        </div>\r\n        <div class=\"col-md-3\">\r\n            ");
                EndContext();
                BeginContext(1238, 132, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-drop-down-list", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "6fb2c778ae644c808af6eda8c17d9d77", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_DropDownListProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.DropDownListProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_DropDownListProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3);
                __Syncfusion_JavaScript_Models_DropDownListProperties.TargetID = (string)__tagHelperAttribute_4.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4);
                __Syncfusion_JavaScript_Models_DropDownListProperties.Width = (string)__tagHelperAttribute_5.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5);
#line 33 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\DateTimePicker\Localization.cshtml"
                __Syncfusion_JavaScript_Models_DropDownListProperties.SelectedItemIndex = 0;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("selected-item-index", __Syncfusion_JavaScript_Models_DropDownListProperties.SelectedItemIndex, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                __Syncfusion_JavaScript_Models_DropDownListProperties.Change = (string)__tagHelperAttribute_6.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(1370, 32, true);
                WriteLiteral("\r\n\r\n        </div>\r\n    </div>\r\n");
                EndContext();
            }
                          );
            DefineSection("ScriptSection", async() => {
                BeginContext(1428, 1024, true);
                WriteLiteral(@"
    <script type=""text/javascript"">
        function onCultureChange(args) {
            var dateTimeobject = $(""#dateTime"").data(""ejDateTimePicker"");
            var texts = {};
            var placeholder;
            if (args.text == ""en-US"") {
                texts = { today: ""Today"", timeNow: ""Time Now"", done: ""Done"", timeTitle: ""Time"" };
                placeholder = ""Select datetime"";
            }
            else if (args.text == ""vi-VN"") {
                texts = { today: ""hôm nay"", timeNow: ""Bây giờ là"", done: ""được rồi"", timeTitle: ""thời gian"" };
                placeholder = ""Chọn ngày giờ"";
            }
            else if (args.text == ""zh-CN"") {
                texts = { today: ""今天"", timeNow: ""現在時間"", done: ""做过"", timeTitle: ""时间"" };
                placeholder = ""选择日期时间"";
            }

            dateTimeobject.setModel({ ""locale"": args.text, buttonText: texts, watermarkText: placeholder });
        }
        $(""#sampleProperties"").ejPropertiesPanel();
    </script>
");
                EndContext();
            }
                          );
            DefineSection("StyleSection", async() => {
                BeginContext(2477, 164, true);
                WriteLiteral("\r\n    <style>\r\n        .control {\r\n            width: 210px;\r\n        }\r\n\r\n        .control .e-datetime-wrap {\r\n            width: 175px;\r\n        }\r\n    </style>\r\n");
                EndContext();
            }
                          );
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            DefineSection("MetaTags", async() => {
                BeginContext(18, 162, true);
                WriteLiteral("\r\n   <meta name=\"description\" content=\"This example demonstrates how the datetimepicker supports the keyboard navigation(keyboard shortcuts) in a ASP.NET Core\">\r\n");
                EndContext();
            }
                          );
            BeginContext(183, 2, true);
            WriteLiteral("\r\n");
            EndContext();
            DefineSection("ScriptReferenceSection", async() => {
                BeginContext(217, 13, true);
                WriteLiteral("\r\n    <script");
                EndContext();
                BeginWriteAttribute("src", " src=\"", 230, "\"", 294, 1);
#line 6 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\DateTimePicker\Keyboard.cshtml"
                WriteAttributeValue("", 236, Url.Content("~/Scripts/cultures/ej.culture.en-US.min.js"), 236, 58, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(295, 12, true);
                WriteLiteral("></script>\r\n");
                EndContext();
            }
                          );
            DefineSection("SampleHeading", async() => {
                BeginContext(333, 58, true);
                WriteLiteral("<span class=\"sampleName\">DateTimePicker / Keyboard </span>");
                EndContext();
            }
                          );
            BeginContext(394, 2, true);
            WriteLiteral("\r\n");
            EndContext();
            DefineSection("ControlsSection", async() => {
                BeginContext(421, 70, true);
                WriteLiteral("\r\n    <div class=\"frame\">\r\n        <div class=\"control\">\r\n            ");
                EndContext();
                BeginContext(491, 93, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-date-time-picker", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "489ead32398744deb4632fadba12214f", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_DateTimePickerProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.DateTimePickerProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_DateTimePickerProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
#line 13 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\DateTimePicker\Keyboard.cshtml"
                __Syncfusion_JavaScript_Models_DateTimePickerProperties.Value = DateTime.Now;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("value", __Syncfusion_JavaScript_Models_DateTimePickerProperties.Value, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                __Syncfusion_JavaScript_Models_DateTimePickerProperties.Width = (string)__tagHelperAttribute_1.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(584, 32, true);
                WriteLiteral("\r\n\r\n        </div>\r\n    </div>\r\n");
                EndContext();
            }
                          );
            DefineSection("PropertiesSection", async() => {
                BeginContext(646, 1567, true);
                WriteLiteral(@"
    <div class=""row"">
        <div class=""col-md-3"">
            Alt + j 
        </div>
        <div class=""col-md-3"">
            Focuses the control
        </div>
    </div>
    <div class=""row"">
        <div class=""col-md-3"">
            Alt + Down
        </div>
        <div class=""col-md-3"">
            Opens/Hides the popup
        </div>
    </div>
    <div class=""row"">
        <div class=""col-md-3"">
            After popup opened:
        </div>
    </div>
    <br />
    <div class=""row"">
        <div class=""col-md-3"">
            Alt + Left
        </div>
        <div class=""col-md-3"">
            Focus through out the popup container in forward direction
        </div>
        <div class=""col-md-3""></div>
    </div>
    <br />
    <div class=""row"">
        <div class=""col-md-3"">
            Alt + Right
        </div>
        <div class=""col-md-3"">
            Focus through out the popup container in backward direction
        </div>
        <div class=""col-");
                WriteLiteral(@"md-3""></div>
    </div>
    <br />
    <br />
    <div class=""row"">
        <div class=""col-md-3"">
            Enter
        </div>
        <div class=""col-md-3"">
            select the focused control/selects the focused element
        </div>
        <div class=""col-md-3""></div>
    </div>
    <br />
    <div class=""row"">
    </div>
    <div class=""row"">
        <div class=""col-md-3"">
            Esc
        </div>
        <div class=""col-md-3"">
            Closes the popup
        </div>
    </div>
    <br />
");
                EndContext();
            }
                          );
            DefineSection("ScriptSection", async() => {
                BeginContext(2239, 353, true);
                WriteLiteral(@"
    <script type=""text/javascript"">
        $(function () {
            $(""#sampleProperties"").ejPropertiesPanel();
            $(document).on(""keydown"", function (e) {
                if (e.altKey && e.keyCode === 74) { // j- key code.
                    $(""#DateTime"").focus();
                }
            });
        });
    </script>
");
                EndContext();
            }
                          );
            DefineSection("StyleSection", async() => {
                BeginContext(2617, 164, true);
                WriteLiteral("\r\n    <style>\r\n        .control {\r\n            width: 210px;\r\n        }\r\n\r\n        .control .e-datetime-wrap {\r\n            width: 175px;\r\n        }\r\n    </style>\r\n");
                EndContext();
            }
                          );
        }
Exemplo n.º 4
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            DefineSection("MetaTags", async() => {
                BeginContext(18, 167, true);
                WriteLiteral("\r\n   <meta name=\"description\" content=\"This example demonstrates a simple, mobile-friendly and responsive ASP.NET Core DateTimePicker to select both date and time.\">\r\n");
                EndContext();
            }
                          );
            DefineSection("ScriptReferenceSection", async() => {
                BeginContext(220, 13, true);
                WriteLiteral("\r\n    <script");
                EndContext();
                BeginWriteAttribute("src", " src=\"", 233, "\"", 297, 1);
#line 5 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\DateTimePicker\Default.cshtml"
                WriteAttributeValue("", 239, Url.Content("~/Scripts/cultures/ej.culture.en-US.min.js"), 239, 58, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(298, 12, true);
                WriteLiteral("></script>\r\n");
                EndContext();
            }
                          );
            DefineSection("SampleHeading", async() => {
                BeginContext(336, 57, true);
                WriteLiteral("<span class=\"sampleName\">DateTimePicker / Default</span> ");
                EndContext();
            }
                          );
            DefineSection("ControlsSection", async() => {
                BeginContext(421, 70, true);
                WriteLiteral("\r\n    <div class=\"frame\">\r\n        <div class=\"control\">\r\n            ");
                EndContext();
                BeginContext(491, 79, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-date-time-picker", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "898f37b4dd914415a7f3c41bd209e6ff", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_DateTimePickerProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.DateTimePickerProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_DateTimePickerProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
#line 11 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\DateTimePicker\Default.cshtml"
                __Syncfusion_JavaScript_Models_DateTimePickerProperties.Value = DateTime.Now;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("value", __Syncfusion_JavaScript_Models_DateTimePickerProperties.Value, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(570, 30, true);
                WriteLiteral("\r\n        </div>\r\n    </div>\r\n");
                EndContext();
            }
                          );
            DefineSection("StyleSection", async() => {
                BeginContext(625, 164, true);
                WriteLiteral("\r\n    <style>\r\n        .control {\r\n            width: 210px;\r\n        }\r\n\r\n        .control .e-datetime-wrap {\r\n            width: 175px;\r\n        }\r\n    </style>\r\n");
                EndContext();
            }
                          );
        }
Exemplo n.º 5
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            DefineSection("MetaTags", async() => {
                BeginContext(18, 167, true);
                WriteLiteral("\r\n   <meta name=\"description\" content=\"This example demonstrates the various methods like show, hide, enable, getValue and disable in a ASP.NET Core DateTimePicker\">\r\n");
                EndContext();
            }
                          );
            BeginContext(188, 4, true);
            WriteLiteral("\r\n\r\n");
            EndContext();
            DefineSection("ScriptReferenceSection", async() => {
                BeginContext(224, 13, true);
                WriteLiteral("\r\n    <script");
                EndContext();
                BeginWriteAttribute("src", " src=\"", 237, "\"", 301, 1);
#line 7 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\DateTimePicker\Methods.cshtml"
                WriteAttributeValue("", 243, Url.Content("~/Scripts/cultures/ej.culture.en-US.min.js"), 243, 58, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(302, 12, true);
                WriteLiteral("></script>\r\n");
                EndContext();
            }
                          );
            DefineSection("SampleHeading", async() => {
                BeginContext(340, 57, true);
                WriteLiteral("<span class=\"sampleName\">DateTimePicker / Methods </span>");
                EndContext();
            }
                          );
            DefineSection("ControlsSection", async() => {
                BeginContext(425, 70, true);
                WriteLiteral("\r\n    <div class=\"frame\">\r\n        <div class=\"control\">\r\n            ");
                EndContext();
                BeginContext(495, 79, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-date-time-picker", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "56020b58ca6446bf9abba4f2f177505f", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_DateTimePickerProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.DateTimePickerProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_DateTimePickerProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
#line 13 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\DateTimePicker\Methods.cshtml"
                __Syncfusion_JavaScript_Models_DateTimePickerProperties.Value = DateTime.Now;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("value", __Syncfusion_JavaScript_Models_DateTimePickerProperties.Value, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(574, 30, true);
                WriteLiteral("\r\n        </div>\r\n    </div>\r\n");
                EndContext();
            }
                          );
            BeginContext(607, 2, true);
            WriteLiteral("\r\n");
            EndContext();
            DefineSection("PropertiesSection", async() => {
                BeginContext(636, 70, true);
                WriteLiteral("\r\n    <div class=\"row\">\r\n        <div class=\"col-md-12\">\r\n            ");
                EndContext();
                BeginContext(706, 108, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-toggle-button", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "fda0e9f06e744ec2a202839372a5972d", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_ToggleButtonProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.ToggleButtonProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ToggleButtonProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
                __Syncfusion_JavaScript_Models_ToggleButtonProperties.Width = (string)__tagHelperAttribute_2.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
                __Syncfusion_JavaScript_Models_ToggleButtonProperties.DefaultText = (string)__tagHelperAttribute_3.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3);
                __Syncfusion_JavaScript_Models_ToggleButtonProperties.ActiveText = (string)__tagHelperAttribute_4.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4);
                __Syncfusion_JavaScript_Models_ToggleButtonProperties.Click = (string)__tagHelperAttribute_5.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(814, 98, true);
                WriteLiteral("\r\n        </div>\r\n    </div>\r\n    <div class=\"row\">\r\n        <div class=\"col-md-12\">\r\n            ");
                EndContext();
                BeginContext(912, 95, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-button", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "563d10722f614548959c3c84ab01d529", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_ButtonProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.ButtonProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ButtonProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_6);
                __Syncfusion_JavaScript_Models_ButtonProperties.Width = (string)__tagHelperAttribute_2.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
#line 26 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\DateTimePicker\Methods.cshtml"
                __Syncfusion_JavaScript_Models_ButtonProperties.Size = ButtonSize.Small;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("size", __Syncfusion_JavaScript_Models_ButtonProperties.Size, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                __Syncfusion_JavaScript_Models_ButtonProperties.Text = (string)__tagHelperAttribute_7.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_7);
                __Syncfusion_JavaScript_Models_ButtonProperties.Click = (string)__tagHelperAttribute_8.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_8);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(1007, 98, true);
                WriteLiteral("\r\n        </div>\r\n    </div>\r\n    <div class=\"row\">\r\n        <div class=\"col-md-12\">\r\n            ");
                EndContext();
                BeginContext(1105, 110, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-toggle-button", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "3268829c148d469aa39fc44878cfd6a5", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_ToggleButtonProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.ToggleButtonProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ToggleButtonProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_9);
                __Syncfusion_JavaScript_Models_ToggleButtonProperties.Width = (string)__tagHelperAttribute_2.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
                __Syncfusion_JavaScript_Models_ToggleButtonProperties.DefaultText = (string)__tagHelperAttribute_10.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_10);
                __Syncfusion_JavaScript_Models_ToggleButtonProperties.ActiveText = (string)__tagHelperAttribute_11.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_11);
                __Syncfusion_JavaScript_Models_ToggleButtonProperties.Click = (string)__tagHelperAttribute_12.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_12);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(1215, 30, true);
                WriteLiteral("\r\n        </div>\r\n    </div>\r\n");
                EndContext();
            }
                          );
            DefineSection("ScriptSection", async() => {
                BeginContext(1271, 784, true);
                WriteLiteral(@"
    <script type=""text/javascript"">

        function changeState(args) {
            var dateTimeObj = $('#dateTime').data(""ejDateTimePicker"");
            if (args.isChecked) dateTimeObj.disable();
            else dateTimeObj.enable();
        }
        function changeVisible(args) {
            var dateTimeObj = $('#dateTime').data(""ejDateTimePicker"");
            if (args.isChecked)
                dateTimeObj.show();
            else dateTimeObj.hide();
        }
        function getTime(args) {
            var dateTimeObj = $('#dateTime').data(""ejDateTimePicker"");
            alert(""Selected time is : "" + dateTimeObj.getValue());
        }
        $(function () {
            $(""#sampleProperties"").ejPropertiesPanel();
        });
    </script>
");
                EndContext();
            }
                          );
            DefineSection("StyleSection", async() => {
                BeginContext(2080, 164, true);
                WriteLiteral("\r\n    <style>\r\n        .control {\r\n            width: 210px;\r\n        }\r\n\r\n        .control .e-datetime-wrap {\r\n            width: 175px;\r\n        }\r\n    </style>\r\n");
                EndContext();
            }
                          );
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            DefineSection("MetaTags", async() => {
                BeginContext(18, 156, true);
                WriteLiteral("\r\n   <meta name=\"description\" content=\"This example demonstrates the various events like create, change, open and close in a ASP.NET Core DateTimePicker\">\r\n");
                EndContext();
            }
                          );
            BeginContext(177, 2, true);
            WriteLiteral("\r\n");
            EndContext();
            DefineSection("ScriptReferenceSection", async() => {
                BeginContext(211, 13, true);
                WriteLiteral("\r\n    <script");
                EndContext();
                BeginWriteAttribute("src", " src=\"", 224, "\"", 288, 1);
#line 6 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\DateTimePicker\Events.cshtml"
                WriteAttributeValue("", 230, Url.Content("~/Scripts/cultures/ej.culture.en-US.min.js"), 230, 58, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(289, 12, true);
                WriteLiteral("></script>\r\n");
                EndContext();
            }
                          );
            DefineSection("SampleHeading", async() => {
                BeginContext(327, 56, true);
                WriteLiteral("<span class=\"sampleName\">DateTimePicker / Events </span>");
                EndContext();
            }
                          );
            DefineSection("ControlsSection", async() => {
                BeginContext(411, 70, true);
                WriteLiteral("\r\n    <div class=\"frame\">\r\n        <div class=\"control\">\r\n            ");
                EndContext();
                BeginContext(481, 150, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-date-time-picker", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "e6a46bf4c29d499f8f410d4a42203280", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_DateTimePickerProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.DateTimePickerProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_DateTimePickerProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
#line 12 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\DateTimePicker\Events.cshtml"
                __Syncfusion_JavaScript_Models_DateTimePickerProperties.Value = DateTime.Now;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("value", __Syncfusion_JavaScript_Models_DateTimePickerProperties.Value, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                __Syncfusion_JavaScript_Models_DateTimePickerProperties.Create = (string)__tagHelperAttribute_1.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
                __Syncfusion_JavaScript_Models_DateTimePickerProperties.Change = (string)__tagHelperAttribute_2.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
                __Syncfusion_JavaScript_Models_DateTimePickerProperties.Open = (string)__tagHelperAttribute_3.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3);
                __Syncfusion_JavaScript_Models_DateTimePickerProperties.Close = (string)__tagHelperAttribute_4.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(631, 30, true);
                WriteLiteral("\r\n        </div>\r\n    </div>\r\n");
                EndContext();
            }
                          );
            BeginContext(664, 120, true);
            WriteLiteral("<div id=\"target\">\r\n    <ul>\r\n        <li>open</li>\r\n        <li>close</li>\r\n        <li>change</li>\r\n    </ul>\r\n</div>\r\n");
            EndContext();
            DefineSection("EventsDropdown", async() => {
                BeginContext(808, 2, true);
                WriteLiteral("\r\n");
                EndContext();
                BeginContext(810, 174, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-drop-down-list", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "4d9ffe6938ff4724bcd399b0fe24254a", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_DropDownListProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.DropDownListProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_DropDownListProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_5);
                __Syncfusion_JavaScript_Models_DropDownListProperties.TargetID = (string)__tagHelperAttribute_6.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6);
                __Syncfusion_JavaScript_Models_DropDownListProperties.CssClass = (string)__tagHelperAttribute_7.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_7);
#line 24 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\DateTimePicker\Events.cshtml"
                __Syncfusion_JavaScript_Models_DropDownListProperties.ShowCheckbox = true;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("show-checkbox", __Syncfusion_JavaScript_Models_DropDownListProperties.ShowCheckbox, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 24 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\DateTimePicker\Events.cshtml"
                __Syncfusion_JavaScript_Models_DropDownListProperties.CheckAll = true;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("check-all", __Syncfusion_JavaScript_Models_DropDownListProperties.CheckAll, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                __Syncfusion_JavaScript_Models_DropDownListProperties.Change = (string)__tagHelperAttribute_8.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_8);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(984, 5, true);
                WriteLiteral("   \r\n");
                EndContext();
            }
                          );
            DefineSection("ScriptSection", async() => {
                BeginContext(1015, 1377, true);
                WriteLiteral(@"
    <script type=""text/javascript"">
        function evtpropscheckedevent(args) {
            var dateTimeObj = $(""#dateTime"").data(""ejDateTimePicker"");
            if (args.isChecked) {
                switch (args.selectedText) {
                    case ""change"": dateTimeObj.option(args.selectedText, ""timeValChange""); break;
                    case ""open"": dateTimeObj.option(args.selectedText, ""onOpen""); break;
                    case ""close"": dateTimeObj.option(args.selectedText, ""onClose""); break;
                }
            }
            else dateTimeObj.option(args.selectedText, null);
        }
        // Client side Events
        function oncreate(args) {
            jQuery.addEventLog(""Date TimePicker has been <span class='eventTitle'> created</span>."");
        }
        function timeValChange(args) {
            jQuery.addEventLog(""Date TimePicker value has been <span class='eventTitle'> changed</span> to "" + args.value + "".</br>"");
        }
        function onOpen(args)");
                WriteLiteral(@" {
            jQuery.addEventLog(""Date TimePicker is in <span class='eventTitle'> Opened</span>"");
        }
        function onClose(args) {
            jQuery.addEventLog(""Date TimePicker is out of <span class='eventTitle'> Closed</span>"");
        }
        function onClear() {
            jQuery.clearEventLog();
        }
    </script>
");
                EndContext();
            }
                          );
            DefineSection("StyleSection", async() => {
                BeginContext(2417, 164, true);
                WriteLiteral("\r\n    <style>\r\n        .control {\r\n            width: 210px;\r\n        }\r\n\r\n        .control .e-datetime-wrap {\r\n            width: 175px;\r\n        }\r\n    </style>\r\n");
                EndContext();
            }
                          );
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            DefineSection("MetaTags", async() => {
                BeginContext(18, 184, true);
                WriteLiteral("\r\n   <meta name=\"description\" content=\"This example demonstrates the drill down navigaiton in DateTimPicker and its properties like interval, meridian and enable in a ASP.NET Core \">\r\n");
                EndContext();
            }
                          );
            BeginContext(205, 2, true);
            WriteLiteral("\r\n");
            EndContext();
            DefineSection("ScriptReferenceSection", async() => {
                BeginContext(239, 13, true);
                WriteLiteral("\r\n    <script");
                EndContext();
                BeginWriteAttribute("src", " src=\"", 252, "\"", 316, 1);
#line 6 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\DateTimePicker\Drilldown.cshtml"
                WriteAttributeValue("", 258, Url.Content("~/Scripts/cultures/ej.culture.en-US.min.js"), 258, 58, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(317, 12, true);
                WriteLiteral("></script>\r\n");
                EndContext();
            }
                          );
            DefineSection("SampleHeading", async() => {
                BeginContext(355, 59, true);
                WriteLiteral("<span class=\"sampleName\">DateTimePicker / Drilldown</span> ");
                EndContext();
            }
                          );
            DefineSection("ControlsSection", async() => {
                BeginContext(442, 70, true);
                WriteLiteral("\r\n    <div class=\"frame\">\r\n        <div class=\"control\">\r\n            ");
                EndContext();
                BeginContext(512, 182, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-date-time-picker", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "011e313e401f4adc96a1c5e99520cc5a", async() => {
                    BeginContext(569, 18, true);
                    WriteLiteral("\r\n                ");
                    EndContext();
                    BeginContext(587, 71, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-time-drill-down", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "0ea045b2d03744da976f1b1dd1dc60b3", async() => {
                    }
                                                                                );
                    __Syncfusion_JavaScript_Models_TimeDrillDown = CreateTagHelper <global::Syncfusion.JavaScript.Models.TimeDrillDown>();
                    __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_TimeDrillDown);
#line 13 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\DateTimePicker\Drilldown.cshtml"
                    __Syncfusion_JavaScript_Models_TimeDrillDown.Enabled = true;

#line default
#line hidden
                    __tagHelperExecutionContext.AddTagHelperAttribute("enabled", __Syncfusion_JavaScript_Models_TimeDrillDown.Enabled, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 13 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\DateTimePicker\Drilldown.cshtml"
                    __Syncfusion_JavaScript_Models_TimeDrillDown.Interval = 5;

#line default
#line hidden
                    __tagHelperExecutionContext.AddTagHelperAttribute("interval", __Syncfusion_JavaScript_Models_TimeDrillDown.Interval, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 13 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\DateTimePicker\Drilldown.cshtml"
                    __Syncfusion_JavaScript_Models_TimeDrillDown.ShowMeridian = false;

#line default
#line hidden
                    __tagHelperExecutionContext.AddTagHelperAttribute("show-meridian", __Syncfusion_JavaScript_Models_TimeDrillDown.ShowMeridian, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                    await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                    if (!__tagHelperExecutionContext.Output.IsContentModified)
                    {
                        await __tagHelperExecutionContext.SetOutputContentAsync();
                    }
                    Write(__tagHelperExecutionContext.Output);
                    __tagHelperExecutionContext = __tagHelperScopeManager.End();
                    EndContext();
                    BeginContext(658, 14, true);
                    WriteLiteral("\r\n            ");
                    EndContext();
                }
                                                                            );
                __Syncfusion_JavaScript_Models_DateTimePickerProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.DateTimePickerProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_DateTimePickerProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
#line 12 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\DateTimePicker\Drilldown.cshtml"
                __Syncfusion_JavaScript_Models_DateTimePickerProperties.Value = DateTime.Now;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("value", __Syncfusion_JavaScript_Models_DateTimePickerProperties.Value, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(694, 32, true);
                WriteLiteral("\r\n\r\n        </div>\r\n    </div>\r\n");
                EndContext();
            }
                          );
            DefineSection("StyleSection", async() => {
                BeginContext(751, 164, true);
                WriteLiteral("\r\n    <style>\r\n        .control {\r\n            width: 210px;\r\n        }\r\n\r\n        .control .e-datetime-wrap {\r\n            width: 175px;\r\n        }\r\n    </style>\r\n");
                EndContext();
            }
                          );
        }
Exemplo n.º 8
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            DefineSection("MetaTags", async() => {
                BeginContext(18, 132, true);
                WriteLiteral("\r\n   <meta name=\"description\" content=\"This example demonstrates how to enable the rtl property in a ASP.NET Core DateTimePicker\">\r\n");
                EndContext();
            }
                          );
            DefineSection("ScriptReferenceSection", async() => {
                BeginContext(185, 13, true);
                WriteLiteral("\r\n    <script");
                EndContext();
                BeginWriteAttribute("src", " src=\"", 198, "\"", 262, 1);
#line 5 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\DateTimePicker\Rtl.cshtml"
                WriteAttributeValue("", 204, Url.Content("~/Scripts/cultures/ej.culture.en-US.min.js"), 204, 58, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(263, 12, true);
                WriteLiteral("></script>\r\n");
                EndContext();
            }
                          );
            DefineSection("SampleHeading", async() => {
                BeginContext(301, 53, true);
                WriteLiteral("<span class=\"sampleName\">DateTimePicker / Rtl</span> ");
                EndContext();
            }
                          );
            DefineSection("ControlsSection", async() => {
                BeginContext(382, 70, true);
                WriteLiteral("\r\n    <div class=\"frame\">\r\n        <div class=\"control\">\r\n            ");
                EndContext();
                BeginContext(452, 97, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-date-time-picker", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "9d15d9b2a66d4be69175388207cd8738", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_DateTimePickerProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.DateTimePickerProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_DateTimePickerProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
#line 11 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\DateTimePicker\Rtl.cshtml"
                __Syncfusion_JavaScript_Models_DateTimePickerProperties.Value = DateTime.Now;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("value", __Syncfusion_JavaScript_Models_DateTimePickerProperties.Value, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 11 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\DateTimePicker\Rtl.cshtml"
                __Syncfusion_JavaScript_Models_DateTimePickerProperties.EnableRTL = true;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("enable-rtl", __Syncfusion_JavaScript_Models_DateTimePickerProperties.EnableRTL, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(549, 30, true);
                WriteLiteral("\r\n        </div>\r\n    </div>\r\n");
                EndContext();
            }
                          );
            DefineSection("StyleSection", async() => {
                BeginContext(604, 164, true);
                WriteLiteral("\r\n    <style>\r\n        .control {\r\n            width: 210px;\r\n        }\r\n\r\n        .control .e-datetime-wrap {\r\n            width: 175px;\r\n        }\r\n    </style>\r\n");
                EndContext();
            }
                          );
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            DefineSection("MetaTags", async() => {
                BeginContext(18, 188, true);
                WriteLiteral("\r\n   <meta name=\"description\" content=\"DateTimePicker for ASP.NET Core with the strongly typed extension support. Value is set from the code behind by invoking DateTimePickerFor helper\">\r\n");
                EndContext();
            }
                          );
            BeginContext(209, 2, true);
            WriteLiteral("\r\n");
            EndContext();
            DefineSection("ScriptReferenceSection", async() => {
                BeginContext(243, 13, true);
                WriteLiteral("\r\n    <script");
                EndContext();
                BeginWriteAttribute("src", " src=\"", 256, "\"", 320, 1);
#line 6 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\DateTimePicker\DateTimePickerFor.cshtml"
                WriteAttributeValue("", 262, Url.Content("~/Scripts/cultures/ej.culture.en-US.min.js"), 262, 58, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(321, 12, true);
                WriteLiteral("></script>\r\n");
                EndContext();
            }
                          );
            DefineSection("SampleHeading", async() => {
                BeginContext(359, 67, true);
                WriteLiteral("<span class=\"sampleName\">DateTimePicker / DateTimePickerFor</span> ");
                EndContext();
            }
                          );
            BeginContext(429, 2, true);
            WriteLiteral("\r\n");
            EndContext();
            BeginContext(504, 2, true);
            WriteLiteral("\r\n");
            EndContext();
            DefineSection("ControlsSection", async() => {
                BeginContext(531, 2, true);
                WriteLiteral("\r\n");
                EndContext();
#line 13 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\DateTimePicker\DateTimePickerFor.cshtml"
                using (Html.BeginForm())
                {
#line default
#line hidden
                    BeginContext(568, 28, false);
#line 15 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\DateTimePicker\DateTimePickerFor.cshtml"
                    Write(Html.ValidationSummary(true));

#line default
#line hidden
                    EndContext();
                    BeginContext(598, 68, true);
                    WriteLiteral("    <div class=\"frame\">\r\n        <div class=\"control\">\r\n            ");
                    EndContext();
                    BeginContext(666, 270, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-date-time-picker", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "5c55a822e2c84bd6b0f91fc38e364828", async() => {
                    }
                                                                                );
                    __Syncfusion_JavaScript_Models_DateTimePickerProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.DateTimePickerProperties>();
                    __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_DateTimePickerProperties);
                    __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
#line 18 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\DateTimePicker\DateTimePickerFor.cshtml"
                    __Syncfusion_JavaScript_Models_DateTimePickerProperties.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => Model.Value);

#line default
#line hidden
                    __tagHelperExecutionContext.AddTagHelperAttribute("ej-for", __Syncfusion_JavaScript_Models_DateTimePickerProperties.For, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 19 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\DateTimePicker\DateTimePickerFor.cshtml"
                    __Syncfusion_JavaScript_Models_DateTimePickerProperties.ValidationRules = new Dictionary <string, object>()
                    {
                        { "required", true }
                    };

#line default
#line hidden
                    __tagHelperExecutionContext.AddTagHelperAttribute("validation-rules", __Syncfusion_JavaScript_Models_DateTimePickerProperties.ValidationRules, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.SingleQuotes);
#line 20 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\DateTimePicker\DateTimePickerFor.cshtml"
                    __Syncfusion_JavaScript_Models_DateTimePickerProperties.ValidationMessages = new Dictionary <string, object>()
                    {
                        { "required", "Datetime value is required" }
                    };

#line default
#line hidden
                    __tagHelperExecutionContext.AddTagHelperAttribute("validation-messages", __Syncfusion_JavaScript_Models_DateTimePickerProperties.ValidationMessages, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.SingleQuotes);
                    await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                    if (!__tagHelperExecutionContext.Output.IsContentModified)
                    {
                        await __tagHelperExecutionContext.SetOutputContentAsync();
                    }
                    Write(__tagHelperExecutionContext.Output);
                    __tagHelperExecutionContext = __tagHelperScopeManager.End();
                    EndContext();
                    BeginContext(936, 14, true);
                    WriteLiteral("\r\n            ");
                    EndContext();
                    BeginContext(951, 47, false);
#line 21 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\DateTimePicker\DateTimePickerFor.cshtml"
                    Write(Html.ValidationMessageFor(model => model.Value));

#line default
#line hidden
                    EndContext();
                    BeginContext(998, 14, true);
                    WriteLiteral("\r\n            ");
                    EndContext();
                    BeginContext(1012, 51, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-button", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "c5b24a8ee25a42aaadb6cd4fafaeb44a", async() => {
                    }
                                                                                );
                    __Syncfusion_JavaScript_Models_ButtonProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.ButtonProperties>();
                    __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ButtonProperties);
                    __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
#line 22 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\DateTimePicker\DateTimePickerFor.cshtml"
                    __Syncfusion_JavaScript_Models_ButtonProperties.Type = global::Syncfusion.JavaScript.ButtonType.Submit;

#line default
#line hidden
                    __tagHelperExecutionContext.AddTagHelperAttribute("type", __Syncfusion_JavaScript_Models_ButtonProperties.Type, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                    __Syncfusion_JavaScript_Models_ButtonProperties.Text = (string)__tagHelperAttribute_2.Value;
                    __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
                    await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                    if (!__tagHelperExecutionContext.Output.IsContentModified)
                    {
                        await __tagHelperExecutionContext.SetOutputContentAsync();
                    }
                    Write(__tagHelperExecutionContext.Output);
                    __tagHelperExecutionContext = __tagHelperScopeManager.End();
                    EndContext();
                    BeginContext(1063, 30, true);
                    WriteLiteral("\r\n        </div>\r\n    </div>\r\n");
                    EndContext();
#line 25 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\DateTimePicker\DateTimePickerFor.cshtml"
                }

#line default
#line hidden
                BeginContext(1096, 4, true);
                WriteLiteral("    ");
                EndContext();
            }
                          );
            DefineSection("StyleSection", async() => {
                BeginContext(1125, 259, true);
                WriteLiteral(@"
    <style>
        .control {
            width: 210px;
        }

        .control .e-datetime-wrap {
            width: 175px;
        }
          #button {
            margin-left: 30px;
            margin-top: 20px;
        }
    </style>
");
                EndContext();
            }
                          );
        }