Interface IFeature

The feature interface.

interface IFeature {
    get name(): string;
    destroy(): void;
    init(proxy): void;
    update(data): void;
}

Implemented by

Accessors

Methods

Accessors

  • get name(): string
  • Each feature needs to return a constant name that identifies the plugin. Build in features are using the prefix buildin:.

    Returns string

Methods

  • Destroys this feature. This function will be called by the carousel instance and should not be called manually.

    Returns void

  • Initializes this feature. This function will be called by the carousel instance and should not be called manually.

    Parameters

    • proxy: IProxy

      the proxy instance between carousel and feature

    Returns void

  • This triggers the feature to update its inner state. This function will be called by the carousel instance and should not be called manually. The carousel passes a data object that includes the update reason. This can be used to selectively/partially update sections of the feature.

    Parameters

    Returns void

Generated using TypeDoc