示例#1
0
        protected override async Task OnAfterRenderAsync()
        {
            await JsHelpers.SetElementAttributeAsync("QuestionText", "placeholder", "Zadejte text své otázky...");

            await JsHelpers.SetElementAttributeAsync("DisplayName", "placeholder", "Jméno (nepovinné)");

            await JsHelpers.SetElementAttributeAsync("EmailAddress", "placeholder", "E-mail (nepovinné)");

            await JsHelpers.SetElementAttributeAsync(submitInput, "title", "Vložit novou otázku");

            await JsHelpers.SetPageTitleAsync("Questions");
        }
示例#2
0
        protected override async Task OnAfterRenderAsync(bool firstRender)
        {
            await base.OnAfterRenderAsync(firstRender);

            await JsHelpers.SetPageTitleAsync(Title);
        }