System Library Common Episerver
Search Results for

    DocFx,SystemLibrary.Common.Episerver.Properties.MessageConfig,SystemLibrary.Common.Episerver.Properties.MessageEditorDescriptor,SystemLibrary.Common.Episerver.Properties.MessageProperty,SystemLibrary.Common.Episerver.Properties.MessageController,SystemLibrary.Common.Episerver.Attributes.BoxSelectionController,SystemLibrary.Common.Episerver.Attributes.BoxSelectionFactory,SystemLibrary.Common.Episerver.Attributes.JsonEditController,SystemLibrary.Common.Episerver.Attributes.JsonEditFactory,SystemLibrary.Common.Episerver.Descriptors.HideCategoryListDescriptor,SystemLibrary.Common.Episerver.Properties.ParentLinkReferenceController,SystemLibrary.Common.Episerver.Properties.ParentLinkReferenceEditorDescriptor,SystemLibrary.Common.Episerver.Properties.ParentLinkReferenceProperty,SystemLibrary.Common.Episerver.Attributes.MultiDropdownSelectionController,SystemLibrary.Common.Episerver.Attributes.MultiDropdownSelectionFactory,SystemLibrary.Common.Episerver.Initialize.RemoveSuggestedContentTypes,SystemLibrary.Common.Episerver.Extensions.CommonEpiserverApplicationServicesOptions,SystemLibrary.Common.Episerver.Extensions.CommonEpiserverApplicationBuilderOptions,SystemLibrary.Common.Episerver.EditController,SystemLibrary.Common.Episerver.Abstract.BaseController,SystemLibrary.Common.Episerver.Abstract.BaseMultiSelectionFactory,SystemLibrary.Common.Episerver.ConnectionStringsConfig,SystemLibrary.Common.Episerver.PropertiesConfig,SystemLibrary.Common.Episerver.EditConfig,SystemLibrary.Common.Episerver.Properties.MessageConfig,SystemLibrary.Common.Episerver.FontAwesome,SystemLibrary.Common.Episerver.AppSettings.Configuration,SystemLibrary.Common.Episerver.Attributes.ParentLinkReferenceFactory,SystemLibrary.Common.Episerver.Abstract.InternalBaseController,WebApplicationInitializer
    Show / Hide Table of Contents
    NamespaceSystemLibrary.Common.Episerver SystemLibrary.Common.Episerver.dll

    React Block Result is for backward compatibility, Epi 11, if youre still using BlockControllers instead of Components

    Remarks
    X

    Assumes by default that all frontend react components is registered under DOM variable "window.reactBlocks."

    ReactBlockResult

    public class ReactBlockResult : ContentResult, IStatusCodeActionResult, IActionResult

    Inheritance
    System.Object
    Microsoft.AspNetCore.Mvc.ActionResult
    Microsoft.AspNetCore.Mvc.ContentResult
    ReactBlockResult
    Implements
    Microsoft.AspNetCore.Mvc.Infrastructure.IStatusCodeActionResult
    Microsoft.AspNetCore.Mvc.IActionResult
    Inherited Members
    Microsoft.AspNetCore.Mvc.ContentResult.ExecuteResultAsync(Microsoft.AspNetCore.Mvc.ActionContext)
    Microsoft.AspNetCore.Mvc.ContentResult.Content
    Microsoft.AspNetCore.Mvc.ContentResult.ContentType
    Microsoft.AspNetCore.Mvc.ContentResult.StatusCode
    Microsoft.AspNetCore.Mvc.ActionResult.ExecuteResult(Microsoft.AspNetCore.Mvc.ActionContext)
    Examples
    X
    public class CarBlockController : BlockController<CarBlock>
    {
        public override ActionResult Index(CarBlock currentBlock)
        {
            return new ReactBlockResult(currentBlock, renderClientOnly: true);
        }
    }
    Arguments
    X

    Constructors

    Convert the 'model' to a react rendered result

    View Source

    public ReactBlockResult(object model, object additionalProps = null, bool camelCaseProps = false, bool renderClientOnly = false, bool renderServerOnly = false, string tagName = "div", string cssClass = null, string id = null, string componentFullName = null, bool printNullValues = true)

    X
    Methods arguments
    Type Name Description
    System.Object model

    Current block or view model you want as props to your component

    System.Object additionalProps

    Add additional props without extending 'model'. Tip, want content area rendered as 'json object' instead of pre-rendered as a string? Use .SelectFiltered on the ContentArea and add the same name here

    System.Boolean camelCaseProps

    Force all properties to be camel cased

    System.Boolean renderClientOnly

    Render client only, will only render an empty div placeholder for the component

    System.Boolean renderServerOnly

    Render server only will not render the json props in hidden inputs

    System.String tagName
    System.String cssClass
    System.String id
    System.String componentFullName

    Specify the full component name if you do not use the default naming conventions

    System.Boolean printNullValues

    Print properties that are null, or skip printing them, you will then receive undefined

    Implements

    Microsoft.AspNetCore.Mvc.Infrastructure.IStatusCodeActionResult
    Microsoft.AspNetCore.Mvc.IActionResult

    Extension Methods

    TExtensions.ReactServerSideRender<T>(T, Object, String, Boolean, String, String, String, Boolean, Boolean, Boolean)

    }

    • View Source
    In This Article
    Package: nuget
    Source: github
    Website: System Library Common Episerver