Config interface to modify behaviour and style of prompt

interface IConfig {
    animationDirection?: AnimationDirection;
    animationDisable?: boolean;
    backgroundColor?: string;
    containerId?: string;
    hideImage?: boolean;
    hideText?: boolean;
    imageColor?: string;
    imageId?: string;
    imageSize?: string;
    imageStyle?: ImageStyle;
    mobileDetect?: boolean;
    orientation?: DeviceOrientation;
    styleId?: string;
    text?: string;
    textColor?: string;
    textFont?: string;
    textId?: string;
    textSize?: string;
    zIndex?: number;
}

Properties

animationDirection?: AnimationDirection

Direction of image animation

'clockwise'
animationDisable?: boolean

Enable/disable image animation

false
backgroundColor?: string

Background color of whole prompt (all css possibilities, like hexa color '#000000', 'red'...)

'#000000'
containerId?: string

Id of whole container prompt

'promptContainer'
hideImage?: boolean

Hide/show image

false
hideText?: boolean

Hide/show description text

false
imageColor?: string

Color of device image (all css possibilities, like hexa color '#000000', 'red'...)

'#ffffff'
imageId?: string

Id of svg image

'promptImage'
imageSize?: string

Size of device image (all css units like px, em, rem, vh...)

'60vh' for portrait '30vh' for landscape
imageStyle?: ImageStyle

Phone style

'circle'
mobileDetect?: boolean

Turn on/off automatic mobile/tablet detection When automatic detection is on, then prompt is show only on mobile/tablet devices

false
orientation?: DeviceOrientation

The orientation you want to force, if orientation is different, prompt is showed.

'landscape'
styleId?: string

Id of style tag, where all styles of this library are defined

'promptStyle'
text?: string

Description text to show

'Please rotate your device'
textColor?: string

Color of description text (all css possibilities, like hexa color '#000000', 'red'...)

'#ffffff'
textFont?: string

Font of description text

'\'Arial Black\', \'Arial Bold\', Gadget, sans-serif'
textId?: string

Id of container with description text

'promptText'
textSize?: string

Size of description text (all css units like px, em, rem, vh...)

'10vh' for portrait '5vh' for landscape
zIndex?: number

z-index of whole prompt

undefined