Jump to content

dbGrid RowWidget expand/collapse icon


fraxzi

Recommended Posts

Hi All,

I searched all over but I could find a solution.

Since I don't know how to do it, I am asking if anyone knows.

How can I change icon in customCSS with fontasesome icon:

image.png.396af03e83470a75fbf5a17d5a77613c.png

 

I tried but not working:

.x-grid-row-expander{
    content: "\f150";                           
}

 

Thanks,

Frances

 

 

 

Link to comment
Share on other sites

14 hours ago, fraxzi said:

Hi All,

I searched all over but I could find a solution.

Since I don't know how to do it, I am asking if anyone knows.

How can I change icon in customCSS with fontasesome icon:

image.png.396af03e83470a75fbf5a17d5a77613c.png

 

I tried but not working:

.x-grid-row-expander{
    content: "\f150";                           
}

 

Thanks,

Frances

 

 

 

Hi

If you want to use FontAwesome, you should use pseudo css like below

.x-grid-row-collapsed .x-grid-row-expander::before{
    content: "\f2b6";
    font-family: 'FontAwesome';
    font-size: 16px;
    background: white;
}

.x-grid-row-expander::before{
    content: "\f294";
    font-family: 'FontAwesome';
    font-size: 16px;
    background: white;
}

image.thumb.png.0bff48f8edeecb7a0823f07798aadb03.png

Link to comment
Share on other sites

1 hour ago, Hayri ASLAN said:

Hi

If you want to use FontAwesome, you should use pseudo css like below


.x-grid-row-collapsed .x-grid-row-expander::before{
    content: "\f2b6";
    font-family: 'FontAwesome';
    font-size: 16px;
    background: white;
}

.x-grid-row-expander::before{
    content: "\f294";
    font-family: 'FontAwesome';
    font-size: 16px;
    background: white;
}

image.thumb.png.0bff48f8edeecb7a0823f07798aadb03.png

Hi Hayri,

 

I tried but with this result:

image.png.93663ebe551bc56adcbc5f1a2cbace12.png

I there anything I need to tweak aside from CustomCSS of ServerModule?

 

Thanks for helping,

Frances

Link to comment
Share on other sites

26 minutes ago, Sherzod said:

Hello,

Also add this CSS rule:


.x-grid-row-collapsed .x-grid-row-expander, .x-grid-row-expander {
    background-image: none;
}

 

Hi @Sherzod,

It works!  

image.png.6b1bc3b0fa2795e4c85431d8ba408604.png

There's white box if expanded and when collapse.. not a problem though. I just need to center vertically the Icon.

 

Thanks much,

Frances

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...