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++
|
this.data++
|
||||||
},
|
},
|
||||||
getTitle(cell) {
|
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) {
|
getDisplay(cell, data) {
|
||||||
return data
|
return data
|
||||||
|
|
Loading…
Reference in a new issue