Class CarouselHammerConfig

Hierarchy

Hierarchy

  • HammerGestureConfig
    • CarouselHammerConfig

Constructors

Properties

events: string[]

A set of supported event names for gestures to be used in Angular. Angular supports all built-in recognizers, as listed in HammerJS documentation.

options?: {
    cssProps?: any;
    domEvents?: boolean;
    enable?: boolean | (manager: any) => boolean;
    inputClass?: any;
    inputTarget?: EventTarget;
    preset?: any[];
    recognizers?: any[];
    touchAction?: string;
}

Properties whose default values can be overridden for a given event. Different sets of properties apply to different events. For information about which properties are supported for which events, and their allowed and default values, see HammerJS documentation.

Type declaration

overrides: { pan: { direction: number } } = ...

Maps gesture event names to a set of configuration options that specify overrides to the default values for specific properties.

The key is a supported event name to be configured, and the options object contains a set of properties, with override values to be applied to the named recognizer event. For example, to disable recognition of the rotate event, specify {"rotate": {"enable": false}}.

Properties that are not present take the HammerJS default values. For information about which properties are supported for which events, and their allowed and default values, see HammerJS documentation.

Type declaration

ɵfac: unknown
ɵprov: ɵɵInjectableDeclaration<HammerGestureConfig>

Methods

  • Creates a HammerJS Manager and attaches it to a given HTML element.

    Parameters

    • element: HTMLElement

      The element that will recognize gestures.

    Returns HammerInstance