mirror of
https://github.com/thepaperpilot/Planar-Pioneers.git
synced 2024-11-24 09:21:45 +00:00
Added tooltips to gridables for testing
This commit is contained in:
parent
2cd367eebe
commit
514752056c
1 changed files with 13 additions and 1 deletions
|
@ -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 `<tooltip display='${JSON.stringify(this.style)}' ${direction}>
|
||||
<h3>Gridable #${cell}</h3>
|
||||
</tooltip>`
|
||||
},
|
||||
getDisplay(cell, data) {
|
||||
return data
|
||||
|
|
Loading…
Reference in a new issue