Master Table Color Change

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
mishanian
User
Posts: 123

Master Table Color Change

Post by mishanian »

Hi,
how can we change the master table background color when it is showing it on the top in the detail table?


arbei
User
Posts: 9354

Post by arbei »

In which scenario you are talking about?

Master view page show detail records or Detail list page show master records?


mishanian
User
Posts: 123

Post by mishanian »

Hi,
I am talking about the background color or font color of Master table, is it possible these COLORS to be separate from detail table?


arbei
User
Posts: 9354

Post by arbei »

If you use vertical master table, you only need to add CSS classes for table.ewMasterTable. Otherwise,

You can use CurrentTable->getCurrentDetailTable() and CurrentTable()->getCurrentMasterTable() to check if the page is in Master/Detail View or List page.

(Assuming you are talking about Master table view page with showing detail record list.)

You can use below code in Startup Script of the master table view page to change the font color of the master table.

For example:

<?php if (CurrentTable()->getCurrentDetailTable() <> "") { ?>
$(".ewViewTable").css("color","red");
<?php } ?>

Remember to write your own code first, and post your code here for further discuss.


Post Reply