Change color of checkbox

QuestionsChange color of checkbox
Javier asked 4 weeks ago

Hi.

Is there a way to change the color of the checkmarks so they don't appear grayed out?

$col = array();
$col[“title”] = “Personal” ;
$col[“name”] = “personal_dni”;
$col[“width”] = “75”;
$col[“align”] = “center”;
$col[“search”] = true;
$col[“editoptions”] = array(“value”=>”S:N”);
$col[“class”]= “custom-control custom-checkbox” ;

$col[“formatter”] = “checkbox”;

$cols[] = $col;

2 Answers
Abu Ghufran Staff answered 4 weeks ago

Hello,

You can use following CSS styles (github link) to make grid disabled checkboxes as below.

https://gist.github.com/gridphp/c0beb956cd4231465f721026b9d5e3d2

Let me know if it works for you.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Javier answered 4 weeks ago

The .css works!!! Thanks!!

Your Answer

10 + 6 =

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?