Interface CenterContentOptions

Options for the centerContent method

interface CenterContentOptions {
    doNotAnimate?: boolean;
    horizontal?: boolean;
    onComplete?: ((p) => any);
    vertical?: boolean;
}

Properties

doNotAnimate?: boolean

If true, don't animate while centering. Defaults to false.

horizontal?: boolean

True by default. Indicates the content should be centered in the X axis.

onComplete?: ((p) => any)

Optional function to call on operation complete (centering may be animated).

Type declaration

    • (p): any
    • Parameters

      Returns any

vertical?: boolean

True by default. Indicates the content should be centered in the Y axis.

Version :