core.variantHandlers
Preface
The core.variantHandlers
object provides methods related to Variant Handlers
caution
Use only the API methods described in this docs. Use other methods under your own risk, and take into account that they may change in minor versions without considering it as a breaking change.
API
register()
core.variantHandlers.register(variantHandlers)
: Register variant handlers.
variantHandlers
:<Array of Variant Handler classes>
Custom variant handlers. Read the creating Variant Handlers chapter for further info.
Example
import MyVariantHandler from "./MyVariantHandler";
core.variantHandlers.register([MyVariantHandler]);