Can we do an excel kind of Cell Formatting?

QuestionsCan we do an excel kind of Cell Formatting?
Hemant Mahale asked 6 years ago

Hello  Abu,
Can we do an excel kind of Cell Formatting?

e.g., bold, italic and strikethrough etc

 

Thanks in Advance

1 Answers
Abu Ghufran Staff answered 6 years ago

You can apply all possible CSS formatting on cell conditionally.

e.g.

// apply style on target column ‘name’, if column ‘id’ has value ‘7’
$f = array();
$f[“column”] = “id”;
$f[“op”] = “=”;
$f[“value”] = “7”;
$f[“cellcss”] = “‘background-color’:’#FBEC88′, ‘color’:’black'”;
$f[“target”] = “name”;
$f_conditions[] = $f;

 

Refer Conditional Formatting in documentation.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

9 + 4 =

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?