Home Manual Reference Source
public class | source

ExtensionRegistry

Registry to manage HAL extensions written in JavaScript.

Method Summary

Public Methods
public

inject(script: string, stylesheets: string[])

Injects the script and stylesheets of an extension.

public

register(extension: Extension)

Registers an extension.

Public Methods

public inject(script: string, stylesheets: string[]) source

Injects the script and stylesheets of an extension. This method is used during development. Normally you don't have to call this method.

Params:

NameTypeAttributeDescription
script string

the extension's script.

stylesheets string[]

an optional list of stylesheets.

public register(extension: Extension) source

Registers an extension. Use this method to register your extension.

If the extension is already registered, this method will do nothing.

Params:

NameTypeAttributeDescription
extension Extension

the extension to register.