Translate

Friday, 2 December 2011

Dashboard Tab Colours

The script below allows the Tabs on a dashboard to be coloured in differnent colours , Quite cool...

Just insert a Textbox into a dashboard "Contains HTML"
Paste the below code in

<script type="text/javascript">
 var tblId=document.getElementById('TabsTable');
 tblId.tBodies[0].rows[0].cells[1].className='';
 tblId.tBodies[0].rows[0].cells[2].className='';
 tblId.tBodies[0].rows[0].cells[3].className='';
 tblId.tBodies[0].rows[0].cells[4].className='';
 tblId.tBodies[0].rows[0].cells[5].className='';
 tblId.tBodies[0].rows[0].cells[6].className='';

 tblId.tBodies[0].rows[0].cells[1].style.backgroundColor='red';
 tblId.tBodies[0].rows[0].cells[2].style.backgroundColor='red'
 tblId.tBodies[0].rows[0].cells[3].style.backgroundColor='white'
 tblId.tBodies[0].rows[0].cells[4].style.backgroundColor='white'
 tblId.tBodies[0].rows[0].cells[5].style.backgroundColor='blue'
 tblId.tBodies[0].rows[0].cells[6].style.backgroundColor='blue'
</script>


No comments:

Post a Comment

Google Big Query Clone / Copy DataSets / Tables - PROD --> TEST --> DEV Projects

Google Big Query Cloning of Datasets & Tables across GCS Projects. We searched the internet and could not find a simple cloning / ...