JSComponentConfigurationExtensions.RegisterForJavaScript Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
RegisterForJavaScript(IJSComponentConfiguration, Type, String) |
Marks the specified component type as allowed for instantiation from JavaScript. |
RegisterForJavaScript(IJSComponentConfiguration, Type, String, String) |
Marks the specified component type as allowed for instantiation from JavaScript. |
RegisterForJavaScript<TComponent>(IJSComponentConfiguration, String) |
Marks the specified component type as allowed for instantiation from JavaScript. |
RegisterForJavaScript<TComponent>(IJSComponentConfiguration, String, String) |
Marks the specified component type as allowed for instantiation from JavaScript. |
RegisterForJavaScript(IJSComponentConfiguration, Type, String)
Marks the specified component type as allowed for instantiation from JavaScript.
public static void RegisterForJavaScript (this Microsoft.AspNetCore.Components.Web.IJSComponentConfiguration configuration, Type componentType, string identifier);
static member RegisterForJavaScript : Microsoft.AspNetCore.Components.Web.IJSComponentConfiguration * Type * string -> unit
<Extension()>
Public Sub RegisterForJavaScript (configuration As IJSComponentConfiguration, componentType As Type, identifier As String)
Parameters
- configuration
- IJSComponentConfiguration
- componentType
- Type
The component type.
- identifier
- String
A unique identifier for the component type that will be used by JavaScript code.
Applies to
RegisterForJavaScript(IJSComponentConfiguration, Type, String, String)
Marks the specified component type as allowed for instantiation from JavaScript.
public static void RegisterForJavaScript (this Microsoft.AspNetCore.Components.Web.IJSComponentConfiguration configuration, Type componentType, string identifier, string javaScriptInitializer);
static member RegisterForJavaScript : Microsoft.AspNetCore.Components.Web.IJSComponentConfiguration * Type * string * string -> unit
<Extension()>
Public Sub RegisterForJavaScript (configuration As IJSComponentConfiguration, componentType As Type, identifier As String, javaScriptInitializer As String)
Parameters
- configuration
- IJSComponentConfiguration
- componentType
- Type
The component type.
- identifier
- String
A unique identifier for the component type that will be used by JavaScript code.
- javaScriptInitializer
- String
Specifies an optional identifier for a JavaScript function that will be called to register the custom element.
Applies to
RegisterForJavaScript<TComponent>(IJSComponentConfiguration, String)
Marks the specified component type as allowed for instantiation from JavaScript.
public static void RegisterForJavaScript<TComponent> (this Microsoft.AspNetCore.Components.Web.IJSComponentConfiguration configuration, string identifier) where TComponent : Microsoft.AspNetCore.Components.IComponent;
static member RegisterForJavaScript : Microsoft.AspNetCore.Components.Web.IJSComponentConfiguration * string -> unit (requires 'Component :> Microsoft.AspNetCore.Components.IComponent)
<Extension()>
Public Sub RegisterForJavaScript(Of TComponent As IComponent) (configuration As IJSComponentConfiguration, identifier As String)
Type Parameters
- TComponent
The component type.
Parameters
- configuration
- IJSComponentConfiguration
- identifier
- String
A unique identifier for the component type that will be used by JavaScript code.
Applies to
RegisterForJavaScript<TComponent>(IJSComponentConfiguration, String, String)
Marks the specified component type as allowed for instantiation from JavaScript.
public static void RegisterForJavaScript<TComponent> (this Microsoft.AspNetCore.Components.Web.IJSComponentConfiguration configuration, string identifier, string javaScriptInitializer) where TComponent : Microsoft.AspNetCore.Components.IComponent;
static member RegisterForJavaScript : Microsoft.AspNetCore.Components.Web.IJSComponentConfiguration * string * string -> unit (requires 'Component :> Microsoft.AspNetCore.Components.IComponent)
<Extension()>
Public Sub RegisterForJavaScript(Of TComponent As IComponent) (configuration As IJSComponentConfiguration, identifier As String, javaScriptInitializer As String)
Type Parameters
- TComponent
The component type.
Parameters
- configuration
- IJSComponentConfiguration
- identifier
- String
A unique identifier for the component type that will be used by JavaScript code.
- javaScriptInitializer
- String
Specifies an optional identifier for a JavaScript function that will be called to register the custom element.