Jump to content

How to include a FontAwesome Icon in UniDbgrid?


cristianotestai

Recommended Posts

Hello,

 

 In my table I have a status field, where it can be 0(open), 1(close) and 2(canceled). For each status i would like to display in UniDbGrid an icon originated according to CSS class below, using FontAwesome.

 How can i handle the column in UniDbgrid to receive the associated content?

 

/ * CSS Image FontAwesome * /

.x-status-open:: before {

    content: "";

}

 

.x-status-open {

   font-family: FontAwesome! important;

   font-size: 14px!

   color: # 717171! important;

   padding: 2px 5px;

  -webkit-padding-before: 3px;

}

 

.x-status-close:: before {

    content: "";

}

 

.x-status-close {

   font-family: FontAwesome! important;

   font-size: 14px!

   color: # 717171! important;

   padding: 2px 5px;

  -webkit-padding-before: 3px;

}

 

 

.x-status-canceled:: before {

    content: "";

}

 

.x-status-canceled {

   font-family: FontAwesome! important;

   font-size: 14px!

   color: # 717171! important;

   padding: 2px 5px;

  -webkit-padding-before: 3px;

}

 

Thanks!

 

Cristiano Testai

Brazil

Link to comment
Share on other sites

  • 1 year later...
  • 2 years later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...