Image d'arrière plan

Questions ou commentaires?

Needs translation

But

Défini une image d'arrière plan pour l'URL passé en paramètre ou tel que spécifier par l'information du group d'image.

Use when

Guidance for publisher

Working example

Evaluation and report

There is no evaluation and report available for this component.

API (Version 1.0)

Function
Version 1.0
Configuration
Version 1.0
User interface (Template)
Version 1.0
Data source
Not applicable
View and style
Not applicable
i18n string
Not applicable

Function

(Version 1.0)

Function type Name How to implement What it does
jQuery Event wb-init.wb-bgimg Triggered manually (e.g., $( ".wb-bgimg" ).trigger( "wb-init.wb-bgimg" );). Initializes the bg-img plugin. This plugin will be initialized automatically unless the .wb-bgimg element is added after the page load and wet-boew was initialized.
jQuery Event wb-ready.wb-bgimg Triggered automatically after the plugin initializes. Used to identify when and where the plugin initializes (target of the event).
$( document ).on( "wb-ready.wb-bgimg", ".wb-bgimg", function( event ) {
});
$elm.on( "wb-ready.wb-bgimg", function( event ) {
});

Configuration

(Version 1.0)

Option Description How to configure Values
[data-bgimg] String Address of the hyperlinks Sets the background image URL to specified. Valid URL pointing to a valid image ressource
[data-bgimg-srcset] String Images to use in different situations, limited to images sizes for different situations. Set a valid image candidate string [ <source-size-value># , ]? <source-size-value>

User interface (Template)

(Version 1.0)

Source code

Background image source code on GitHub

Date de modification :