Skip to content

Commit

Permalink
the jlab side of finos#160
Browse files Browse the repository at this point in the history
  • Loading branch information
timkpaine committed Jul 23, 2018
1 parent 430a0c3 commit 56f5b94
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/perspective-jupyterlab/src/ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class RenderedPSP extends Widget implements IRenderMime.IRenderer {
} else if (key === 'colorscheme'){
if(layout[key]==='dark'){
this.node.classList.add(PSP_CONTAINER_CLASS_DARK)
psp.addEventListener('loaded', ()=>{
psp.addEventListener('perspective-view-update', ()=>{
// Call once rendered
let grid = this.node.querySelector('perspective-hypergrid');
if (grid){
Expand All @@ -68,6 +68,14 @@ export class RenderedPSP extends Widget implements IRenderMime.IRenderer {
rowProperties: [
{ color: '#eee', backgroundColor: '#2a2c2f' },
],
hoverRowHighlight: {
enabled: true,
backgroundColor: '#555'
},
hoverCellHighlight: {
enabled: true,
backgroundColor: '#444'
},
});
}
});
Expand Down

0 comments on commit 56f5b94

Please sign in to comment.