From 514752056c7b35aa2951fc878c815ead789fbd85 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Wed, 23 Jun 2021 20:04:37 -0500 Subject: [PATCH] Added tooltips to gridables for testing --- src/data/layers/aca/a.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/data/layers/aca/a.js b/src/data/layers/aca/a.js index 0f3c70c..533649f 100644 --- a/src/data/layers/aca/a.js +++ b/src/data/layers/aca/a.js @@ -60,7 +60,19 @@ export default { this.data++ }, getTitle(cell) { - return "Gridable #" + cell + let direction; + if (cell === '101') { + direction = 'top'; + } else if (cell === '102') { + direction = 'bottom'; + } else if (cell === '201') { + direction = 'left'; + } else if (cell === '202') { + direction = 'right'; + } + return ` +

Gridable #${cell}

+
` }, getDisplay(cell, data) { return data