Jump to content

Change unidbgrid checkbox image


Didier

Recommended Posts

Hello,

 

I have 2 UniDbGrids.

In both of then i 've checkbox column .

 

In one i want to change chekbox image to another image for checked/unchecked

In the other i want to do the same with others images.

 

How to do this just changing checkbox checked/unchecked images for each uniguidbgrig.

I can use directly images instead of this, but it seems better doing like this.

 

Thank you

Link to comment
Share on other sites

Hi,

 

How about FontAwesome ?

 

1. UniDBGrid ->

function beforeInit(sender, config)
{
    config.cls='mygrid';
} 

2. CustomCSS:

.mygrid .x-grid-checkcolumn::after {
    content: "\f096";
    background-image: none;
    font-family: fontawesome;
    font-size: 16px;
    color: red;
}

.mygrid .x-grid-checkcolumn-checked::after {
    background-image: none;
    content: '\f046';
}

.mygrid .x-uni-checkcolumn-text {
    padding-left: 20px;
}
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...