Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ComponentMappingWithConfig

The current class extends the @adobe/aem-spa-component-mapping#Mapto library and features with Angular specifics such as

  • Storing the editing configurations for each resource type

Hierarchy

  • ComponentMappingWithConfig

Index

Constructors

Methods

Constructors

constructor

Methods

get

  • get(resourceType: any): any
  • Returns the component class for the given resourceType

    Parameters

    • resourceType: any

      Resource type for which the component class has been stored

    Returns any

getEditConfig

  • getEditConfig(resourceType: any): any
  • Returns the EditConfig structure for the given type

    Parameters

    • resourceType: any

      Resource type for which the configuration has been stored

    Returns any

map

  • map(resourceTypes: any, clazz: any, editConfig?: any): void
  • Stores a component class for the given resource types and also allows to provide an EditConfig object

    Parameters

    • resourceTypes: any

      List of resource types

    • clazz: any

      Component class to be stored

    • Default value editConfig: any = null

    Returns void

Generated using TypeDoc