Bandeau d’information importante

Documentation du tag

Returns a notice item. Takes a dict as parameter, with the following structure:

data_dict = {
    "title": "Content of the notice item (can include html)",
    "is_collapsible" : "(Optional) Boolean, set to true to add a 'close' button for the notice (default: false)",
}

All of the keys of the dict can be passed directly as named parameters of the tag.

Tag name: dsfr_notice

Usage: {% dsfr_notice data_dict %}

Exemples

Données

{'is_collapsible': True,
 'title': 'Label titre du bandeau d’information importante, comprenant un '
          'texte assez long\n'
          '                            pour être sur deux lignes, et \n'
          '                            un lien au fil du texte, ainsi '
          'qu’une croix de fermeture.'}

Résultat

Label titre du bandeau d’information importante, comprenant un texte assez long pour être sur deux lignes, et un lien au fil du texte, ainsi qu’une croix de fermeture.