Beispiel #1
0
        void CustomBodyRenderer(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder)
        {
            builder.OpenComponent(0, PageType);
            builder.SetKey(StartTime);

            foreach (KeyValuePair <string, object> routeValue in RouteValues)
            {
                builder.AddAttribute(1, routeValue.Key, routeValue.Value);
            }

            builder.AddComponentReferenceCapture(2, obj =>
            {
                Instance = obj;
            });
            builder.CloseComponent();
        }
        #pragma warning disable 1998
        protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
            __Blazor.KishAppBlazor.DataTables.DataTable.TypeInference.CreateCascadingValue_0(__builder, 0, 1,
#line 4 "D:\KishAppBlazor\KishAppBlazor.DataTables\DataTable.razor"
                                                                                             true

#line default
#line hidden
                                                                                             , 2,
#line 4 "D:\KishAppBlazor\KishAppBlazor.DataTables\DataTable.razor"
                                                                                             this

#line default
#line hidden
                                                                                             , 3, (__builder2) => {
                __builder2.AddContent(4,
#line 4 "D:\KishAppBlazor\KishAppBlazor.DataTables\DataTable.razor"
                                      ChildContent

#line default
#line hidden
                                      );
            }
                                                                                             );
            __builder.AddMarkupContent(5, "\r\n");
#line 5 "D:\KishAppBlazor\KishAppBlazor.DataTables\DataTable.razor"
            if (!String.IsNullOrEmpty(ID))
            {
#line default
#line hidden
                __builder.AddContent(6, "        ");
                __builder.OpenElement(7, "table");
                __builder.AddAttribute(8, "class",
#line 7 "D:\KishAppBlazor\KishAppBlazor.DataTables\DataTable.razor"
                                       CssClass

#line default
#line hidden
                                       );
                __builder.AddAttribute(9, "id",
#line 7 "D:\KishAppBlazor\KishAppBlazor.DataTables\DataTable.razor"
                                       ID

#line default
#line hidden
                                       );
                __builder.AddMarkupContent(10, "\r\n            ");
                __builder.OpenElement(11, "thead");
                __builder.AddMarkupContent(12, "\r\n                ");
                __builder.OpenElement(13, "tr");
                __builder.AddMarkupContent(14, "\r\n");
#line 10 "D:\KishAppBlazor\KishAppBlazor.DataTables\DataTable.razor"
                foreach (var column in columns)
                {
#line default
#line hidden
                    __builder.AddContent(15,
#line 12 "D:\KishAppBlazor\KishAppBlazor.DataTables\DataTable.razor"
                                         column.HeaderTemplate

#line default
#line hidden
                                         );
#line 12 "D:\KishAppBlazor\KishAppBlazor.DataTables\DataTable.razor"
                }

#line default
#line hidden
                __builder.AddContent(16, "                ");
                __builder.CloseElement();
                __builder.AddMarkupContent(17, "\r\n            ");
                __builder.CloseElement();
                __builder.AddMarkupContent(18, "\r\n            ");
                __builder.OpenElement(19, "tbody");
                __builder.AddMarkupContent(20, "\r\n");
#line 17 "D:\KishAppBlazor\KishAppBlazor.DataTables\DataTable.razor"

                if (Data != null)
                {
                    foreach (var item in Data)
                    {
#line default
#line hidden
                        __builder.AddContent(21, "                            ");
                        __builder.OpenElement(22, "tr");
                        __builder.SetKey(
#line 22 "D:\KishAppBlazor\KishAppBlazor.DataTables\DataTable.razor"
                            item.GetHashCode()

#line default
#line hidden
                            );
                        __builder.AddMarkupContent(23, "\r\n");
#line 23 "D:\KishAppBlazor\KishAppBlazor.DataTables\DataTable.razor"
                        foreach (var column in columns)
                        {
#line default
#line hidden
                            __builder.AddContent(24,
#line 25 "D:\KishAppBlazor\KishAppBlazor.DataTables\DataTable.razor"
                                                 column.CellTemplate(item)

#line default
#line hidden
                                                 );
#line 25 "D:\KishAppBlazor\KishAppBlazor.DataTables\DataTable.razor"
                        }

#line default
#line hidden
                        __builder.AddContent(25, "                            ");
                        __builder.CloseElement();
                        __builder.AddMarkupContent(26, "\r\n");
#line 28 "D:\KishAppBlazor\KishAppBlazor.DataTables\DataTable.razor"
                    }
                }


#line default
#line hidden
                __builder.AddContent(27, "            ");
                __builder.CloseElement();
                __builder.AddMarkupContent(28, "\r\n        ");
                __builder.CloseElement();
                __builder.AddMarkupContent(29, "\r\n");
#line 33 "D:\KishAppBlazor\KishAppBlazor.DataTables\DataTable.razor"
            }

#line default
#line hidden
        }
Beispiel #3
0
        #pragma warning disable 1998
        protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
            __builder.OpenElement(0, "div");
            __builder.AddAttribute(1, "class", "blazored-typeahead");
            __builder.AddElementReferenceCapture(2, (__value) => {
#line 6 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\CustomTypeahead.razor"
                typeahead = __value;

#line default
#line hidden
            }
                                                 );
            __builder.AddMarkupContent(3, "\r\n    ");
            __builder.OpenElement(4, "div");
            __builder.AddAttribute(5, "class", "blazored-typeahead__controls");
            __builder.AddMarkupContent(6, "\r\n        ");
            __builder.OpenElement(7, "input");
            __builder.AddAttribute(8, "class", "blazored-typeahead__input");
            __builder.AddAttribute(9, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 12 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\CustomTypeahead.razor"
                                                                                                                                                                   ShowSuggestions

#line default
#line hidden
                                                                                                                                                                   ));
            __builder.AddAttribute(10, "type", "text");
            __builder.AddAttribute(11, "autocomplete", "off");
            __builder.AddAttribute(12, "placeholder",
#line 15 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\CustomTypeahead.razor"
                                   Placeholder

#line default
#line hidden
                                   );
            __builder.AddAttribute(13, "value", Microsoft.AspNetCore.Components.BindConverter.FormatValue(
#line 10 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\CustomTypeahead.razor"
                                       SearchText

#line default
#line hidden
                                       ));
            __builder.AddAttribute(14, "oninput", Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => SearchText = __value, SearchText));
            __builder.SetUpdatesAttributeName("value");
            __builder.AddElementReferenceCapture(15, (__value) => {
#line 8 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\CustomTypeahead.razor"
                searchInput = __value;

#line default
#line hidden
            }
                                                 );
            __builder.CloseElement();
            __builder.AddMarkupContent(16, "\r\n    ");
            __builder.CloseElement();
            __builder.AddMarkupContent(17, "\r\n");
#line 17 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\CustomTypeahead.razor"
            if (ShouldShowSuggestions())
            {
#line default
#line hidden
                __builder.OpenElement(18, "div");
                __builder.AddAttribute(19, "class", "blazored-typeahead__results");
                __builder.AddMarkupContent(20, "\r\n");
#line 20 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\CustomTypeahead.razor"
                foreach (var item in Suggestions)
                {
#line default
#line hidden
                    __builder.AddContent(21, "        ");
                    __builder.OpenElement(22, "div");
                    __builder.AddAttribute(23, "class", "blazored-typeahead__result" + " " + (
#line 22 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\CustomTypeahead.razor"
                                               GetSelectedSuggestionClass(item)

#line default
#line hidden
                                               ));
                    __builder.AddAttribute(24, "tabindex", "0");
                    __builder.AddAttribute(25, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 22 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\CustomTypeahead.razor"
                                                                                                                                                                            () => SelectResult(item)

#line default
#line hidden
                                                                                                                                                                            ));
                    __builder.AddAttribute(26, "onkeyup", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.KeyboardEventArgs>(this,
#line 22 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\CustomTypeahead.razor"
                                                                                                                                                                               ((e) => HandleKeyUpOnSuggestion(e, item))

#line default
#line hidden
                                                                                                                                                                               ));
                    __builder.SetKey(
#line 22 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\CustomTypeahead.razor"
                        item

#line default
#line hidden
                        );
                    __builder.AddMarkupContent(27, "\r\n");
#line 23 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\CustomTypeahead.razor"
                    if (ResultTemplate != null)
                    {
#line default
#line hidden
                        __builder.AddContent(28,
#line 25 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\CustomTypeahead.razor"
                                             ResultTemplate(item)

#line default
#line hidden
                                             );
#line 25 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\CustomTypeahead.razor"
                    }

#line default
#line hidden
                    __builder.AddContent(29, "        ");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(30, "\r\n");
#line 28 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\CustomTypeahead.razor"
                }

#line default
#line hidden
                __builder.CloseElement();
                __builder.AddMarkupContent(31, "\r\n");
#line 30 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\CustomTypeahead.razor"
            }
            else if (ShowNotFound())
            {
#line default
#line hidden
                __builder.AddContent(32, "        ");
                __builder.OpenElement(33, "div");
                __builder.AddAttribute(34, "class", "blazored-typeahead__results");
                __builder.AddMarkupContent(35, "\r\n");
#line 34 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\CustomTypeahead.razor"
                if (NotFoundTemplate != null)
                {
#line default
#line hidden
                    __builder.AddContent(36, "                ");
                    __builder.OpenElement(37, "div");
                    __builder.AddAttribute(38, "class", "blazored-typeahead__notfound");
                    __builder.AddMarkupContent(39, "\r\n                    ");
                    __builder.AddContent(40,
#line 37 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\CustomTypeahead.razor"
                                         NotFoundTemplate

#line default
#line hidden
                                         );
                    __builder.AddMarkupContent(41, "\r\n                ");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(42, "\r\n");
#line 39 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\CustomTypeahead.razor"
                }
                else
                {
#line default
#line hidden
                    __builder.AddContent(43, "                ");
                    __builder.AddMarkupContent(44, "<div class=\"blazored-typeahead__notfound\">\r\n                    No Results Found\r\n                </div>\r\n");
#line 45 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\CustomTypeahead.razor"
                }

#line default
#line hidden
                __builder.AddContent(45, "        ");
                __builder.CloseElement();
                __builder.AddMarkupContent(46, "\r\n");
#line 47 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\CustomTypeahead.razor"
            }

#line default
#line hidden
            __builder.CloseElement();
        }
        #pragma warning disable 1998
        protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
            __builder.AddMarkupContent(0, "<h3>Custom Typeahead</h3>\r\n");
            __builder.OpenElement(1, "div");
            __builder.AddAttribute(2, "class", "blazored-typeahead");
            __builder.AddMarkupContent(3, "\r\n    ");
            __builder.OpenElement(4, "div");
            __builder.AddAttribute(5, "class", "blazored-typeahead__controls");
            __builder.AddMarkupContent(6, "\r\n        ");
            __builder.OpenElement(7, "input");
            __builder.AddAttribute(8, "type", "text");
            __builder.AddAttribute(9, "class", "blazored-typeahead__input");
            __builder.AddAttribute(10, "autocomplete", "off");
            __builder.AddAttribute(11, "placeholder",
#line 10 "C:\Users\Yorik\Desktop\Blazor_Movies\Movies_Blazor\Client\Shared\CustomTypeahead.razor"
                                   Placeholder

#line default
#line hidden
                                   );
            __builder.AddAttribute(12, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 13 "C:\Users\Yorik\Desktop\Blazor_Movies\Movies_Blazor\Client\Shared\CustomTypeahead.razor"
                                                                                                                                                                    ShowSuggestions

#line default
#line hidden
                                                                                                                                                                    ));
            __builder.AddAttribute(13, "onfocusout", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.FocusEventArgs>(this,
#line 14 "C:\Users\Yorik\Desktop\Blazor_Movies\Movies_Blazor\Client\Shared\CustomTypeahead.razor"
                                                                                                                                                                       onfocusout

#line default
#line hidden
                                                                                                                                                                       ));
            __builder.AddAttribute(14, "value", Microsoft.AspNetCore.Components.BindConverter.FormatValue(
#line 11 "C:\Users\Yorik\Desktop\Blazor_Movies\Movies_Blazor\Client\Shared\CustomTypeahead.razor"
                                       SearchText

#line default
#line hidden
                                       ));
            __builder.AddAttribute(15, "oninput", Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => SearchText = __value, SearchText));
            __builder.SetUpdatesAttributeName("value");
            __builder.CloseElement();
            __builder.AddMarkupContent(16, "\r\n    ");
            __builder.CloseElement();
            __builder.AddMarkupContent(17, "\r\n");
#line 16 "C:\Users\Yorik\Desktop\Blazor_Movies\Movies_Blazor\Client\Shared\CustomTypeahead.razor"
            if (IsSearching)
            {
#line default
#line hidden
                __builder.AddContent(18, "        ");
                __builder.AddMarkupContent(19, "<div class=\"blazored-typeahead__results\">\r\n            <div class=\"blazored-typeahead__result\">\r\n                <span>Loading...</span>\r\n            </div>\r\n        </div>\r\n");
#line 23 "C:\Users\Yorik\Desktop\Blazor_Movies\Movies_Blazor\Client\Shared\CustomTypeahead.razor"
            }
            else if (ShouldShowSuggestions())
            {
#line default
#line hidden
                __builder.AddContent(20, "        ");
                __builder.OpenElement(21, "div");
                __builder.AddAttribute(22, "class", "blazored-typeahead__results");
                __builder.AddMarkupContent(23, "\r\n");
#line 27 "C:\Users\Yorik\Desktop\Blazor_Movies\Movies_Blazor\Client\Shared\CustomTypeahead.razor"
                foreach (var item in Suggestions)
                {
#line default
#line hidden
                    __builder.AddContent(24, "                ");
                    __builder.OpenElement(25, "div");
                    __builder.AddAttribute(26, "class", "blazored-typeahead__result");
                    __builder.AddAttribute(27, "tabindex", "0");
                    __builder.AddAttribute(28, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 30 "C:\Users\Yorik\Desktop\Blazor_Movies\Movies_Blazor\Client\Shared\CustomTypeahead.razor"
                                                                                                                                                                            () => SelectSuggestion(item)

#line default
#line hidden
                                                                                                                                                                            ));
                    __builder.AddAttribute(29, "onmouseover", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 31 "C:\Users\Yorik\Desktop\Blazor_Movies\Movies_Blazor\Client\Shared\CustomTypeahead.razor"
                                                                                                                                                                                OnmouseoverSuggestion

#line default
#line hidden
                                                                                                                                                                                ));
                    __builder.AddAttribute(30, "onmouseout", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 31 "C:\Users\Yorik\Desktop\Blazor_Movies\Movies_Blazor\Client\Shared\CustomTypeahead.razor"
                                                                                                                                                                               OnmouseoutSuggestion

#line default
#line hidden
                                                                                                                                                                               ));
                    __builder.SetKey(
#line 29 "C:\Users\Yorik\Desktop\Blazor_Movies\Movies_Blazor\Client\Shared\CustomTypeahead.razor"
                        item

#line default
#line hidden
                        );
                    __builder.AddMarkupContent(31, "\r\n                    ");
                    __builder.AddContent(32,
#line 32 "C:\Users\Yorik\Desktop\Blazor_Movies\Movies_Blazor\Client\Shared\CustomTypeahead.razor"
                                         ResultTemplate(item)

#line default
#line hidden
                                         );
                    __builder.AddMarkupContent(33, "\r\n                ");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(34, "\r\n");
#line 34 "C:\Users\Yorik\Desktop\Blazor_Movies\Movies_Blazor\Client\Shared\CustomTypeahead.razor"
                }

#line default
#line hidden
                __builder.AddContent(35, "        ");
                __builder.CloseElement();
                __builder.AddMarkupContent(36, "\r\n");
#line 36 "C:\Users\Yorik\Desktop\Blazor_Movies\Movies_Blazor\Client\Shared\CustomTypeahead.razor"
            }
            else if (ShowNotFound())
            {
#line default
#line hidden
                __builder.AddContent(37, "        ");
                __builder.OpenElement(38, "div");
                __builder.AddAttribute(39, "class", "blazored-typeahead__results");
                __builder.AddMarkupContent(40, "\r\n");
#line 40 "C:\Users\Yorik\Desktop\Blazor_Movies\Movies_Blazor\Client\Shared\CustomTypeahead.razor"
                if (NotFoundTemplate != null)
                {
#line default
#line hidden
                    __builder.AddContent(41, "                ");
                    __builder.OpenElement(42, "div");
                    __builder.AddAttribute(43, "class", "blazored-typeahead__notfound");
                    __builder.AddMarkupContent(44, "\r\n                    ");
                    __builder.AddContent(45,
#line 43 "C:\Users\Yorik\Desktop\Blazor_Movies\Movies_Blazor\Client\Shared\CustomTypeahead.razor"
                                         NotFoundTemplate

#line default
#line hidden
                                         );
                    __builder.AddMarkupContent(46, "\r\n                ");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(47, "\r\n");
#line 45 "C:\Users\Yorik\Desktop\Blazor_Movies\Movies_Blazor\Client\Shared\CustomTypeahead.razor"
                }
                else
                {
#line default
#line hidden
                    __builder.AddContent(48, "                ");
                    __builder.AddMarkupContent(49, "<div class=\"blazored-typeahead__notfound\">\r\n                    No Results Found\r\n                </div>\r\n");
#line 51 "C:\Users\Yorik\Desktop\Blazor_Movies\Movies_Blazor\Client\Shared\CustomTypeahead.razor"
                }

#line default
#line hidden
                __builder.AddContent(50, "        ");
                __builder.CloseElement();
                __builder.AddMarkupContent(51, "\r\n");
#line 53 "C:\Users\Yorik\Desktop\Blazor_Movies\Movies_Blazor\Client\Shared\CustomTypeahead.razor"
            }

#line default
#line hidden
            __builder.CloseElement();
        }