Interface IConfig

Config interface to modify behaviour and style of prompt

Hierarchy

  • IConfig

Properties

animationDirection?: AnimationDirection

Direction of image animation

Default

'clockwise'
animationDisable?: boolean

Enable/disable image animation

Default

false
backgroundColor?: string

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

Default

'#000000'
containerId?: string

Id of whole container prompt

Default

'promptContainer'
hideImage?: boolean

Hide/show image

Default

false
hideText?: boolean

Hide/show description text

Default

false
imageColor?: string

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

Default

'#ffffff'
imageId?: string

Id of svg image

Default

'promptImage'
imageSize?: string

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

Default

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

Phone style

Default

'circle'
mobileDetect?: boolean

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

Default

false
orientation?: DeviceOrientation

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

Default

'landscape'
styleId?: string

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

Default

'promptStyle'
text?: string

Description text to show

Default

'Please rotate your device'
textColor?: string

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

Default

'#ffffff'
textFont?: string

Font of description text

Default

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

Id of container with description text

Default

'promptText'
textSize?: string

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

Default

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

z-index of whole prompt

Default

undefined

Generated using TypeDoc