From b21e264f9ec90b7d4a40af64ddd63d0bca75c4d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20Charignon?= Date: Wed, 1 May 2024 22:16:39 +0200 Subject: [PATCH] Ajoute les couleurs --- vistimeline.html | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/vistimeline.html b/vistimeline.html index ea31c0a..b97d68d 100644 --- a/vistimeline.html +++ b/vistimeline.html @@ -13,6 +13,21 @@ #visualization { border: 1px solid lightgray; } + .vis-item.red { + background-color: #ee8a8a; + } + .vis-item.green { + background-color: lightgreen; + } + .vis-item.yellow { + background-color: yellow; + } + .vis-item.blue { + background-color: lightblue; + } + .vis-item.purple { + background-color: #b78aee; + } @@ -31,6 +46,7 @@ { name: "start", title: "Start", optional: false, type: "Date", description: "Some text", allowMultiple: false }, { name: "end", title: "End", optional: true, type: "Date", description: "Some text", allowMultiple: false }, { name: "group", title: "Group", optional: true, description: "Some text", allowMultiple: false }, + { name: "className", title: "Color", optional: true, description: "any color between red, bleu, yellow, green, purple", allowMultiple: false }, ], requiredAccess: 'read table'}); grist.onRecords(function (records, mappings) {