Conditional Fomat

QuestionsConditional Fomat
Gary Brett asked 10 years ago

Hi there, is it possible to have individual formatting on cells? As a basic example if I wanted quantityOrdered formatting to yellow on anything above 25?

$col["highlight"] ('quantityOrdered', '>=', 25, 'yellow');

Would that work?

I have seen the demo but unsure why its got Amazoin?
$buttons_buy = "<a target='_blank' href='http://www.amazon.com?id={id}' style='text-decoration:none; white-space:none; border:1px solid gray; padding:2px; position:relative; width:25px; color:red'>Buy</a>";

Cheers

Gary

2 Answers
Abu Ghufran answered 10 years ago

Refer demos/appearance/conditional-format.php demo.

// highlight cell, if defined cellclass OR cellcss
$f = array();
$f["column"] = "id";
$f["op"] = "=";
$f["value"] = "12";
$f["cellcss"] = "'background-color':'red'";
// $f["cellclass"] = "focus-cell"; // this also work
$f_conditions[] = $f;

Gary Brett answered 10 years ago

Great, thats brilliant once more Abu, not sure my original download has all files as the calculated field and conditional format demos do not work locally..

Not to worry

Your Answer

12 + 17 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?