Widget Notes et liens

Le widget Notes et liens fonctionne comme le widget Texte libre, mais offre davantage d’options de mise en forme.

Configuration

  1. Saisissez le texte que vous souhaitez afficher. Remarque : le format Markdown est pris en charge.
  2. Choisissez la taille du texte et la couleur d’arrière-plan de la note.
  3. Sélectionnez la position du pointeur.

Ce widget prend en charge les template variables. Utilisez la syntaxe $<NOM_VARIABLE>.value pour modifier de façon dynamique le contenu du widget. Par exemple, $env.value modifie la valeur d’un lien vers l’environnement sélectionné.

Template variables du widget Notes et liens

API

Ce widget peut être utilisé avec l’API Dashboards. Consultez la documentation à ce sujet pour en savoir plus.

Le schéma JSON utilisé pour le widget Notes et liens est le suivant :

Expand All

Champ

Type

Description

background_color

string

Background color of the note.

content [required]

string

Content of the note.

font_size

string

Size of the text.

has_padding

boolean

Whether to add padding or not.

show_tick

boolean

Whether to show a tick or not.

text_align

enum

How to align the text on the widget. Allowed enum values: center,left,right

tick_edge

enum

Define how you want to align the text on the widget. Allowed enum values: bottom,left,right,top

tick_pos

string

Where to position the tick on an edge.

type [required]

enum

Type of the note widget. Allowed enum values: note

vertical_align

enum

Vertical alignment. Allowed enum values: center,top,bottom

{
  "background_color": "string",
  "content": "",
  "font_size": "string",
  "has_padding": false,
  "show_tick": false,
  "text_align": "string",
  "tick_edge": "string",
  "tick_pos": "string",
  "type": "note",
  "vertical_align": "string"
}

Pour aller plus loin