Interface IStaticProps

Static properties for a component. These properties remain constant throughout the lifecycle of the component. This interface extends IStaticProps, inheriting the static properties defined for modules.

Hierarchy

Properties

__fixHelperStaticProps?: any
canPreloadImages?: boolean

Whether to preload images automatically.

Default

true
canPreloadVideos?: boolean

Whether to preload videos automatically.

Default

false
container?: string | false | HTMLElement

The container for the preloader. You can pass a CSS selector string, an HTML element, or set it to false if you only need the preloader callbacks.

Default

'#v-preloader'
forceEnd?: number | false

If true and the animated progress is less than 1, a timeline will automatically complete the progress when nearing the end. If false, progress will continue using linear interpolation until it completes.

Default

500
lerp?: number | false

The amount of linear interpolation to apply to the loading progress. If set to false, no interpolation will be used, and the progress will update instantly.

Default

0.1
preloadCustomSelector?: string

The selector for custom resources to be preloaded. These elements should have properties such as isLoaded, isComplete, or the attribute data-is-loaded (from 0 to 1 or a boolean) for tracking loading status. Custom elements may also use the data-load-count attribute to indicate their weight.

Default

'.js-preload'
preloadIgnoreClassName?: string

A class name that can be added to elements (such as images, videos, or custom resources) that should be ignored during the preload process.

Default

'js-preload-ignore'
resourcesQuantity?: number

The default number of resources to preload. This can be incremented using custom logic.

Default

0