Class AdminModule
Represents a Kentico Xperience module, with options to register client SystemJs modules.
public abstract class AdminModule : Module
- Inheritance
-
objectAdminModule
- Inherited Members
- Extension Methods
Constructors
AdminModule(string)
Creates a new instance of the AdminModule class.
protected AdminModule(string moduleName)
Parameters
moduleName
stringModule name
Methods
OnInit()
Override this method to perform actions required to initialize the module.
protected override void OnInit()
Remarks
The initialization is invoked after the service container has been built.
Use the OnInit(ModuleInitParameters) method override for access to application services needed for module initialization.
RegisterClientModule(string, string, IEnumerable<ClientModuleDescriptor>)
Registers a client SystemJs module.
protected void RegisterClientModule(string organizationName, string projectName, IEnumerable<ClientModuleDescriptor> dependencies = null)
Parameters
organizationName
stringOrganization name used as an unique namespace prefix.
projectName
stringProject name
dependencies
IEnumerable<ClientModuleDescriptor>List of SystemJs modules this module depends on.
RegisterDefaultValueComponent(string, string, Func<object, string>, Func<string, object>)
Registers component for editing default value in field editor for the given data type. DataType.
protected void RegisterDefaultValueComponent(string dataType, string componentIdentifier, Func<object, string> serializationFunction, Func<string, object> deserializationFunction)
Parameters
dataType
stringThe data type.
componentIdentifier
stringThe form component identifier.
serializationFunction
Func<object, string>Function that handles serialization of the form component's underlying type to it's string representation.
deserializationFunction
Func<string, object>Function that handles deserialization from string into the form component's underlying type.
Exceptions
- InvalidOperationException
Missing registration for serialization/deserialization function.